8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ffa9f3 commit 8e43568Copy full SHA for 8e43568
test/parallel/test-buffer-alloc.js
@@ -8,8 +8,8 @@ const SlowBuffer = require('buffer').SlowBuffer;
8
// Verify the maximum Uint8Array size. There is no concrete limit by spec. The
9
// internal limits should be updated if this fails.
10
assert.throws(
11
- () => new Uint8Array(2 ** 31),
12
- { message: 'Invalid typed array length: 2147483648' }
+ () => new Uint8Array(2 ** 32),
+ { message: 'Invalid typed array length: 4294967296' }
13
);
14
15
const b = Buffer.allocUnsafe(1024);
test/parallel/test-buffer-over-max-length.js
@@ -25,5 +25,5 @@ assert.throws(() => Buffer.allocUnsafe(kMaxLength + 1), bufferMaxSizeMsg);
25
assert.throws(() => Buffer.allocUnsafeSlow(kMaxLength + 1), bufferMaxSizeMsg);
26
27
// issue GH-4331
28
-assert.throws(() => Buffer.allocUnsafe(0xFFFFFFFF), bufferMaxSizeM 41BA sg);
+assert.throws(() => Buffer.allocUnsafe(0x100000000), bufferMaxSizeMsg);
29
assert.throws(() => Buffer.allocUnsafe(0xFFFFFFFFF), bufferMaxSizeMsg);