Skip to content

Commit 8173028

Browse files
committed
test: adapt buffer test for v8 sandbox
1 parent 04946a7 commit 8173028

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-buffer-concat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ assert.throws(() => {
8484
Buffer.concat([Buffer.from('hello')], -2);
8585
}, {
8686
code: 'ERR_OUT_OF_RANGE',
87-
message: 'The value of "length" is out of range. It must be >= 0 && <= 9007199254740991. ' +
88-
'Received -2'
87+
message: /The value of "length" is out of range\. It must be >= 0 && <= (?:34359738367|9007199254740991)\. Received -2/
8988
});
9089

9190
// eslint-disable-next-line node-core/crypto-check

0 commit comments

Comments
 (0)