test: update tests for larger Buffers · nodejs/node@8e43568 · GitHub
Skip to content

Commit 8e43568

Browse files
jakobkummerowMylesBorins
authored andcommitted
test: update tests for larger Buffers
V8 is about to increase the max TypedArray length to 2**32-1, which Node inherits as Buffer.kMaxLength. Some tests relied on values greater than the previous max length (2**31-1) to throw errors; this updates those tests for the new max length. PR-URL: #32114 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
1 parent 1ffa9f3 commit 8e43568

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/parallel/test-buffer-alloc.js

Lines changed: 2 additions & 2 deletions

test/parallel/test-buffer-over-max-length.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)