mirror of https://github.com/tc39/test262.git
Update ArrayBuffer transfer feature flag
This commit is contained in:
parent
59d5a6906d
commit
ad034f3230
|
@ -248,6 +248,10 @@ json-modules
|
|||
# https://github.com/tc39/proposal-resizablearraybuffer
|
||||
resizable-arraybuffer
|
||||
|
||||
# ArrayBuffer transfer
|
||||
# https://github.com/tc39/proposal-arraybuffer-transfer
|
||||
arraybuffer-transfer
|
||||
|
||||
# Temporal
|
||||
# https://github.com/tc39/proposal-temporal
|
||||
Temporal
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
Annex B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||
[[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
verifyProperty(ArrayBuffer.prototype, 'transfer', {
|
||||
|
|
|
@ -9,7 +9,7 @@ info: |
|
|||
17 ECMAScript Standard Built-in Objects:
|
||||
Unless specified otherwise, the [[Extensible]] internal slot
|
||||
of a built-in object initially has the value true.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
assert(Object.isExtensible(ArrayBuffer.prototype.transfer));
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4);
|
||||
|
|
|
@ -26,7 +26,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4);
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4);
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4);
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4, { maxByteLength: 8 });
|
||||
|
|
|
@ -26,7 +26,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4, { maxByteLength: 8 });
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4, { maxByteLength: 8 });
|
||||
|
|
|
@ -24,7 +24,7 @@ info: |
|
|||
this method as a zero-copy move or a realloc.
|
||||
14. Perform ! DetachArrayBuffer(O).
|
||||
15. Return new.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var source = new ArrayBuffer(4, { maxByteLength: 8 });
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
verifyProperty(ArrayBuffer.prototype.transfer, 'length', {
|
||||
|
|
|
@ -15,7 +15,7 @@ info: |
|
|||
Unless otherwise specified, the name property of a built-in Function
|
||||
object, if it exists, has the attributes { [[Writable]]: false,
|
||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength).
|
||||
7. Let new be ? Construct(%ArrayBuffer%, « 𝔽(newByteLength) »).
|
||||
[...]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(0);
|
||||
|
|
|
@ -14,7 +14,7 @@ info: |
|
|||
O.[[ArrayBufferByteLength]].
|
||||
6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength).
|
||||
[...]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
var log = [];
|
||||
|
|
|
@ -11,7 +11,7 @@ info: |
|
|||
Built-in function objects that are not identified as constructors do not
|
||||
implement the [[Construct]] internal method unless otherwise specified
|
||||
in the description of a particular function.
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -13,7 +13,7 @@ info: |
|
|||
4. If IsDetachedBuffer(O) is true, throw a TypeError exception.
|
||||
[...]
|
||||
includes: [detachArrayBuffer.js]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
assert.sameValue(typeof ArrayBuffer.prototype.transfer, 'function');
|
||||
|
|
|
@ -10,7 +10,7 @@ info: |
|
|||
1. Let O be the this value.
|
||||
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
||||
[...]
|
||||
features: [resizable-arraybuffer]
|
||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
||||
---*/
|
||||
|
||||
assert.sameValue(typeof ArrayBuffer.prototype.transfer, 'function');
|
||||
|
|
Loading…
Reference in New Issue