diff --git a/test/built-ins/ArrayBuffer/prototype/transfer/new-length-excessive.js b/test/built-ins/ArrayBuffer/prototype/transfer/new-length-excessive.js index 6c0aa32896c..4288fbe7d67 100644 --- a/test/built-ins/ArrayBuffer/prototype/transfer/new-length-excessive.js +++ b/test/built-ins/ArrayBuffer/prototype/transfer/new-length-excessive.js @@ -3,20 +3,8 @@ /*--- esid: sec-arraybuffer.prototype.transfer description: > - Throws a RangeError the newLength value is too large to create a new - ArrayBuffer. -info: | - ArrayBuffer.prototype.transfer ( [ newLength ] ) - - 1. Let O be the this value. - 2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]). - 3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception. - 4. If IsDetachedBuffer(O) is true, throw a TypeError exception. - 5. If newLength is undefined, let newByteLength be - O.[[ArrayBufferByteLength]]. - 6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength). - 7. Let new be ? Construct(%ArrayBuffer%, « 𝔽(newByteLength) »). - [...] + Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping + in ToIndex. features: [resizable-arraybuffer, arraybuffer-transfer] ---*/ diff --git a/test/built-ins/ArrayBuffer/prototype/transferToFixedLength/new-length-excessive.js b/test/built-ins/ArrayBuffer/prototype/transferToFixedLength/new-length-excessive.js index a221bb7a749..a2e84d23e1f 100644 --- a/test/built-ins/ArrayBuffer/prototype/transferToFixedLength/new-length-excessive.js +++ b/test/built-ins/ArrayBuffer/prototype/transferToFixedLength/new-length-excessive.js @@ -3,20 +3,8 @@ /*--- esid: sec-arraybuffer.prototype.transfertofixedlength description: > - Throws a RangeError the newLength value is too large to create a new - ArrayBuffer. -info: | - ArrayBuffer.prototype.transferToFixedLength ( [ newLength ] ) - - 1. Let O be the this value. - 2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]). - 3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception. - 4. If IsDetachedBuffer(O) is true, throw a TypeError exception. - 5. If newLength is undefined, let newByteLength be - O.[[ArrayBufferByteLength]]. - 6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength). - 7. Let new be ? Construct(%ArrayBuffer%, « 𝔽(newByteLength) »). - [...] + Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping + in ToIndex. features: [resizable-arraybuffer, arraybuffer-transfer] ---*/