From 4f722915218862b108c90371503d26a3fe89f4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 17 Sep 2021 14:34:02 +0200 Subject: deps: update V8 to 9.4.146.18 PR-URL: https://github.com/nodejs/node/pull/39945 Reviewed-By: Colin Ihrig Reviewed-By: Jiawen Geng Reviewed-By: Matteo Collina Reviewed-By: Michael Dawson --- .../test/mjsunit/typedarray-resizablearraybuffer-detach.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'deps/v8/test/mjsunit/typedarray-resizablearraybuffer-detach.js') diff --git a/deps/v8/test/mjsunit/typedarray-resizablearraybuffer-detach.js b/deps/v8/test/mjsunit/typedarray-resizablearraybuffer-detach.js index 95e2a99ecd..69ad91e693 100644 --- a/deps/v8/test/mjsunit/typedarray-resizablearraybuffer-detach.js +++ b/deps/v8/test/mjsunit/typedarray-resizablearraybuffer-detach.js @@ -22,8 +22,12 @@ const ctors = [ MyUint8Array ]; +function CreateResizableArrayBuffer(byteLength, maxByteLength) { + return new ArrayBuffer(byteLength, {maxByteLength: maxByteLength}); +} + (function ConstructorThrowsIfBufferDetached() { - const rab = new ResizableArrayBuffer(40, 80); + const rab = CreateResizableArrayBuffer(40, 80); %ArrayBufferDetach(rab); for (let ctor of ctors) { @@ -34,7 +38,7 @@ const ctors = [ })(); (function TypedArrayLengthAndByteLength() { - const rab = new ResizableArrayBuffer(40, 80); + const rab = CreateResizableArrayBuffer(40, 80); let tas = []; for (let ctor of ctors) { @@ -53,7 +57,7 @@ const ctors = [ })(); (function AccessDetachedTypedArray() { - const rab = new ResizableArrayBuffer(16, 40); + const rab = CreateResizableArrayBuffer(16, 40); const i8a = new Int8Array(rab, 0, 4); @@ -90,7 +94,7 @@ const ctors = [ } %EnsureFeedbackVectorForFunction(ReadElement2); - const rab = new ResizableArrayBuffer(16, 40); + const rab = CreateResizableArrayBuffer(16, 40); const i8a = new Int8Array(rab, 0, 4); assertEquals(0, ReadElement2(i8a)); @@ -114,7 +118,7 @@ const ctors = [ } %EnsureFeedbackVectorForFunction(WriteElement2); - const rab = new ResizableArrayBuffer(16, 40); + const rab = CreateResizableArrayBuffer(16, 40); const i8a = new Int8Array(rab, 0, 4); assertEquals(0, i8a[2]); -- cgit v1.2.1