Skip to content

Commit

Permalink
Update ArrayBuffer transfer feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
syg authored and ptomato committed Jan 25, 2023
1 parent 59d5a69 commit ad034f3
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 17 deletions.
4 changes: 4 additions & 0 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/ArrayBuffer/prototype/transfer/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/ArrayBuffer/prototype/transfer/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info: |
O.[[ArrayBufferByteLength]].
6. Else, let newByteLength be ? ToIntegerOrInfinity(newLength).
[...]
features: [resizable-arraybuffer]
features: [resizable-arraybuffer, arraybuffer-transfer]
---*/

var log = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ad034f3

Please sign in to comment.