mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 07:25:15 +02:00
Fix description of new-length-excessive
This commit is contained in:
parent
6fecc44859
commit
4a8135e01e
@ -3,20 +3,8 @@
|
|||||||
/*---
|
/*---
|
||||||
esid: sec-arraybuffer.prototype.transfer
|
esid: sec-arraybuffer.prototype.transfer
|
||||||
description: >
|
description: >
|
||||||
Throws a RangeError the newLength value is too large to create a new
|
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
||||||
ArrayBuffer.
|
in ToIndex.
|
||||||
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) »).
|
|
||||||
[...]
|
|
||||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -3,20 +3,8 @@
|
|||||||
/*---
|
/*---
|
||||||
esid: sec-arraybuffer.prototype.transfertofixedlength
|
esid: sec-arraybuffer.prototype.transfertofixedlength
|
||||||
description: >
|
description: >
|
||||||
Throws a RangeError the newLength value is too large to create a new
|
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
||||||
ArrayBuffer.
|
in ToIndex.
|
||||||
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) »).
|
|
||||||
[...]
|
|
||||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user