diff --git a/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-grows.js b/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-grows.js index c1597171ea..5a2c7ba47d 100644 --- a/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-grows.js +++ b/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-grows.js @@ -127,7 +127,8 @@ for (let ctor of ctors) { return 0; } }; - assert.compareArray(ToNumbers(lengthTracking.subarray(evil)), [ + assert.compareArray( + ToNumbers(lengthTracking.subarray(evil, lengthTracking.length)), [ 0, 2, 4, diff --git a/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-shrinks.js b/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-shrinks.js index 502f63cc73..a282302d1c 100644 --- a/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-shrinks.js +++ b/test/staging/ArrayBuffer/resizable/subarray-parameter-conversion-shrinks.js @@ -167,7 +167,7 @@ for (let ctor of ctors) { } }; assert.throws(RangeError, () => { - lengthTracking.subarray(evil); + lengthTracking.subarray(evil, lengthTracking.length); }); }