test: update tests for larger Buffers
requested to merge github/fork/mmarchini/cherrypick-80adc276f773b2ff00d9271d3006fbdf92a85e8c into master
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.
Cherry-picked from canary-base
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines