Skip to content

Commit 2341805

Browse files
committed
test: remove tests that create very large buffers
With V8 11.9, the maximum ArrayBuffer length can be as high as 2**53, which is a bit too large for current hardware. PR-URL: #50115 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 1528846 commit 2341805

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

test/parallel/test-blob-buffer-too-large.js

-24
This file was deleted.

test/parallel/test-buffer-slow.js

-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ for (const [key, value] of sb.entries()) {
3030

3131
// Should work with edge cases
3232
assert.strictEqual(SlowBuffer(0).length, 0);
33-
try {
34-
assert.strictEqual(
35-
SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
36-
} catch (e) {
37-
// Don't match on message as it is from the JavaScript engine. V8 and
38-
// ChakraCore provide different messages.
39-
assert.strictEqual(e.name, 'RangeError');
40-
}
4133

4234
// Should throw with invalid length type
4335
const bufferInvalidTypeMsg = {

0 commit comments

Comments
 (0)