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