mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Remove "resizable-arraybuffer" from ArrayBuffer transfer tests
Also adds missing "arraybuffer-transfer" feature flags.
This commit is contained in:
parent
f5c932144a
commit
9ac846e0b9
@ -10,7 +10,7 @@ info: |
|
|||||||
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
||||||
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
||||||
[...]
|
[...]
|
||||||
features: [SharedArrayBuffer, resizable-arraybuffer, ArrayBuffer, arraybuffer-transfer]
|
features: [SharedArrayBuffer, ArrayBuffer, arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var detached = Object.getOwnPropertyDescriptor(
|
var detached = Object.getOwnPropertyDescriptor(
|
||||||
|
@ -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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert(Object.isExtensible(ArrayBuffer.prototype.transfer));
|
assert(Object.isExtensible(ArrayBuffer.prototype.transfer));
|
||||||
|
@ -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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ esid: sec-arraybuffer.prototype.transfer
|
|||||||
description: >
|
description: >
|
||||||
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
||||||
in ToIndex.
|
in ToIndex.
|
||||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof ArrayBuffer.prototype.transfer, 'function');
|
assert.sameValue(typeof ArrayBuffer.prototype.transfer, 'function');
|
||||||
|
@ -9,7 +9,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, Symbol, BigInt]
|
features: [arraybuffer-transfer, Symbol, BigInt]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof ArrayBuffer.prototype.transfer, "function");
|
assert.sameValue(typeof ArrayBuffer.prototype.transfer, "function");
|
||||||
|
@ -10,7 +10,7 @@ info: |
|
|||||||
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
||||||
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
||||||
[...]
|
[...]
|
||||||
features: [SharedArrayBuffer, resizable-arraybuffer]
|
features: [SharedArrayBuffer, arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var sab = new SharedArrayBuffer(0);
|
var sab = new SharedArrayBuffer(0);
|
||||||
|
@ -13,7 +13,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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(ArrayBuffer.prototype, 'transferToFixedLength', {
|
verifyProperty(ArrayBuffer.prototype, 'transferToFixedLength', {
|
||||||
|
@ -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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert(Object.isExtensible(ArrayBuffer.prototype.transferToFixedLength));
|
assert(Object.isExtensible(ArrayBuffer.prototype.transferToFixedLength));
|
||||||
|
@ -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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(ArrayBuffer.prototype.transferToFixedLength, 'length', {
|
verifyProperty(ArrayBuffer.prototype.transferToFixedLength, '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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ esid: sec-arraybuffer.prototype.transfertofixedlength
|
|||||||
description: >
|
description: >
|
||||||
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
Throws a RangeError if the newLength is larger than 2^53 - 1 due to clamping
|
||||||
in ToIndex.
|
in ToIndex.
|
||||||
features: [resizable-arraybuffer, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, 'function');
|
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, '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, arraybuffer-transfer]
|
features: [arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, 'function');
|
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, 'function');
|
||||||
|
@ -9,7 +9,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, Symbol, BigInt]
|
features: [arraybuffer-transfer, Symbol, BigInt]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, "function");
|
assert.sameValue(typeof ArrayBuffer.prototype.transferToFixedLength, "function");
|
||||||
|
@ -10,7 +10,7 @@ info: |
|
|||||||
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
2. Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
||||||
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
3. If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
||||||
[...]
|
[...]
|
||||||
features: [SharedArrayBuffer, resizable-arraybuffer]
|
features: [SharedArrayBuffer, arraybuffer-transfer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var sab = new SharedArrayBuffer(0);
|
var sab = new SharedArrayBuffer(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user