Skip to content

Commit 1277c6a

Browse files
committed
test: squash line for buffer regression #649 test
1 parent d6a4e3d commit 1277c6a

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

test/parallel/test-buffer-regression-649.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ const SlowBuffer = require('buffer').SlowBuffer;
77
// Regression test for https://github.com/nodejs/node/issues/649.
88
const len = 1422561062959;
99
const lenLimitMsg = /^RangeError: Invalid typed array length$/;
10-
assert.throws(() => Buffer(len).toString('utf8'),
11-
lenLimitMsg);
12-
assert.throws(() => SlowBuffer(len).toString('utf8'),
13-
lenLimitMsg);
14-
assert.throws(() => Buffer.alloc(len).toString('utf8'),
15-
lenLimitMsg);
16-
assert.throws(() => Buffer.allocUnsafe(len).toString('utf8'),
17-
lenLimitMsg);
10+
assert.throws(() => Buffer(len).toString('utf8'), lenLimitMsg);
11+
assert.throws(() => SlowBuffer(len).toString('utf8'), lenLimitMsg);
12+
assert.throws(() => Buffer.alloc(len).toString('utf8'), lenLimitMsg);
13+
assert.throws(() => Buffer.allocUnsafe(len).toString('utf8'), lenLimitMsg);
1814
assert.throws(() => Buffer.allocUnsafeSlow(len).toString('utf8'),
1915
lenLimitMsg);

0 commit comments

Comments
 (0)