Remove "resizable-arraybuffer" from ArrayBuffer transfer tests

Also adds missing "arraybuffer-transfer" feature flags.
This commit is contained in:
André Bargull 2023-06-28 15:36:29 +02:00 committed by Ms2ger
parent f5c932144a
commit 9ac846e0b9
23 changed files with 23 additions and 23 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 = [];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 = [];

View File

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

View File

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

View File

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

View File

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

View File

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