Update ArrayBuffer transfer feature flag

This commit is contained in:
Shu-yu Guo 2023-01-18 13:44:45 -08:00 committed by Philip Chimento
parent 59d5a6906d
commit ad034f3230
18 changed files with 21 additions and 17 deletions

View File

@ -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

View File

@ -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', {

View File

@ -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));

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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 });

View File

@ -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', {

View File

@ -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]
---*/

View File

@ -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);

View File

@ -14,7 +14,7 @@ info: |
O.[[ArrayBufferByteLength]].
6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength).
[...]
features: [resizable-arraybuffer]
features: [resizable-arraybuffer, arraybuffer-transfer]
---*/
var log = [];

View File

@ -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(

View File

@ -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');

View File

@ -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');