mirror of https://github.com/tc39/test262.git
Add features tags for Atomics and SharedArrayBuffer (#1494)
* Add features tags for Atomics * Add features tags for SharedArrayBuffer
This commit is contained in:
parent
431e6cb20c
commit
478f5b4c0c
|
@ -11,7 +11,7 @@ info: |
|
|||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Symbol.toStringTag]
|
||||
features: [Atomics, Symbol.toStringTag]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics[Symbol.toStringTag], 'Atomics');
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.add
|
||||
description: Testing descriptor property of Atomics.add
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "add");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.add.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.add
|
|||
description: >
|
||||
Atomics.add.name is "add".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.add.name, "add");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.add
|
|||
description: >
|
||||
Test Atomics.add on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.add
|
|||
description: >
|
||||
Test Atomics.add on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.and
|
||||
description: Testing descriptor property of Atomics.and
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "and");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.and.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.and
|
|||
description: >
|
||||
Atomics.and.name is "and".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.and.name, "and");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.and
|
|||
description: >
|
||||
Test Atomics.and on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.and
|
|||
description: >
|
||||
Test Atomics.and on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.compareexchange
|
||||
description: Testing descriptor property of Atomics.compareExchange
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "compareExchange");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.compareExchange.length, 4);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.compareexchange
|
|||
description: >
|
||||
Atomics.compareExchange.name is "compareExchange".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.compareExchange.name, "compareExchange");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.compareexchange
|
|||
description: >
|
||||
Test Atomics.compareExchange on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.compareexchange
|
|||
description: >
|
||||
Test Atomics.compareExchange on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.exchange
|
||||
description: Testing descriptor property of Atomics.exchange
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "exchange");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.exchange.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.exchange
|
|||
description: >
|
||||
Atomics.exchange.name is "exchange".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.exchange.name, "exchange");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.exchange
|
|||
description: >
|
||||
Test Atomics.exchange on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.exchange
|
|||
description: >
|
||||
Test Atomics.exchange on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.islockfree
|
||||
description: >
|
||||
Test isLockFree on various non-intuitive arguments
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(false, Atomics.isLockFree(hide(3, Number.NaN)));
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.islockfree
|
||||
description: Testing descriptor property of Atomics.add
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "add");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.isLockFree.length, 1);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.islockfree
|
|||
description: >
|
||||
Atomics.isLockFree.name is "isLockFree".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.isLockFree.name, "isLockFree");
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.islockfree
|
||||
description: >
|
||||
Test isLockFree on nonnegative integer arguments
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8,
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.load
|
||||
description: Testing descriptor property of Atomics.load
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "load");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.load.length, 2);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.load
|
|||
description: >
|
||||
Atomics.load.name is "load".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.load.name, "load");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.load
|
|||
description: >
|
||||
Test Atomics.load on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.load
|
|||
description: >
|
||||
Test Atomics.load on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.or
|
||||
description: Testing descriptor property of Atomics.or
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "or");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.or.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.or
|
|||
description: >
|
||||
Atomics.or.name is "or".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.or.name, "or");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.or
|
|||
description: >
|
||||
Test Atomics.or on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.or
|
|||
description: >
|
||||
Test Atomics.or on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -20,6 +20,7 @@ info: |
|
|||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||
[[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(typeof Atomics, "object", "no [[Call]]");
|
||||
|
|
|
@ -10,6 +10,7 @@ info: |
|
|||
|
||||
The value of the [[Prototype]] internal slot of the Atomics object is the
|
||||
intrinsic object %ObjectPrototype%.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var proto = Object.getPrototypeOf(Atomics);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.store
|
||||
description: Testing descriptor property of Atomics.store
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "store");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.store.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.store
|
|||
description: >
|
||||
Atomics.store.name is "store".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.store.name, "store");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.store
|
|||
description: >
|
||||
Test Atomics.store on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.store
|
|||
description: >
|
||||
Test Atomics.store on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.sub
|
||||
description: Testing descriptor property of Atomics.sub
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "sub");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.sub.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.sub
|
|||
description: >
|
||||
Atomics.sub.name is "sub".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.sub.name, "sub");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.sub
|
|||
description: >
|
||||
Test Atomics.sub on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.sub
|
|||
description: >
|
||||
Test Atomics.sub on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.wait
|
||||
description: Testing descriptor property of Atomics.wait
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "wait");
|
||||
|
|
|
@ -7,6 +7,7 @@ description: >
|
|||
Test that Atomics.wait returns the right result when it timed out and that
|
||||
the time to time out is reasonable.
|
||||
includes: [atomicsHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -6,6 +6,7 @@ esid: sec-atomics.wait
|
|||
description: >
|
||||
Test Atomics.wait on arrays that allow atomic operations,
|
||||
in an Agent that is allowed to wait.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
// Let's assume 'wait' is not allowed on the main thread,
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.wait.length, 4);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.wait
|
|||
description: >
|
||||
Atomics.wait.name is "wait".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.wait.name, "wait");
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wait
|
||||
description: >
|
||||
Test that Atomics.wait times out with a negative timeout
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -7,6 +7,7 @@ description: >
|
|||
Test that Atomics.wait actually waits and does not spuriously wake
|
||||
up when the memory value is changed.
|
||||
includes: [atomicsHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.wait
|
|||
description: >
|
||||
Test Atomics.wait on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.wait
|
|||
description: >
|
||||
Test Atomics.wait on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wait
|
||||
description: >
|
||||
Test that Atomics.wait returns the right result when it was awoken.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Allowed boundary cases of the third 'count' argument to Atomics.wake
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(4);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: Testing descriptor property of Atomics.wake
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "wake");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.wake.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.wake
|
|||
description: >
|
||||
Atomics.wake.name is "wake".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.wake.name, "wake");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.wake
|
|||
description: >
|
||||
Test Atomics.wake on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.wake
|
|||
description: >
|
||||
Test Atomics.wake on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -6,6 +6,7 @@ esid: sec-atomics.wake
|
|||
description: >
|
||||
Test that Atomics.wake wakes all waiters on a location, but does not
|
||||
wake waiters on other locations.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var WAKEUP = 0; // Waiters on this will be woken
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes all waiters if that's what the count is.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var WAKEUP = 0; // Waiters on this will be woken
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes agents in the order they are waiting.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var NUMAGENT = 3;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes zero waiters if the count is NaN
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes zero waiters if the count is negative
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
$262.agent.start(
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes one waiter if that's what the count is.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
var NUMAGENT = 3;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes two waiters if that's what the count is.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
esid: sec-atomics.wake
|
||||
description: >
|
||||
Test that Atomics.wake wakes zero waiters if that's what the count is.
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
esid: sec-atomics.xor
|
||||
description: Testing descriptor property of Atomics.xor
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
verifyWritable(Atomics, "xor");
|
||||
|
|
|
@ -21,6 +21,7 @@ info: |
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.xor.length, 3);
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: sec-atomics.xor
|
|||
description: >
|
||||
Atomics.xor.name is "xor".
|
||||
includes: [propertyHelper.js]
|
||||
features: [Atomics]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Atomics.xor.name, "xor");
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.xor
|
|||
description: >
|
||||
Test Atomics.xor on non-shared integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var ab = new ArrayBuffer(16);
|
||||
|
|
|
@ -6,7 +6,7 @@ esid: sec-atomics.xor
|
|||
description: >
|
||||
Test Atomics.xor on shared non-integer TypedArrays
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [Atomics, TypedArray]
|
||||
---*/
|
||||
|
||||
var sab = new SharedArrayBuffer(1024);
|
||||
|
|
|
@ -18,6 +18,7 @@ info: |
|
|||
bytes. If it is impossible to create such a Shared Data Block,
|
||||
throw a RangeError exception.
|
||||
...
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
|
|
|
@ -18,7 +18,7 @@ info: |
|
|||
...
|
||||
3. Let block be ? CreateByteDataBlock(byteLength).
|
||||
...
|
||||
features: [Reflect.construct]
|
||||
features: [SharedArrayBuffer, Reflect.construct]
|
||||
---*/
|
||||
|
||||
function DummyError() {}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/*---
|
||||
esid: sec-createsharedbytedatablock
|
||||
description: All bytes are initialized to zero
|
||||
features: [DataView]
|
||||
features: [SharedArrayBuffer, DataView]
|
||||
---*/
|
||||
|
||||
var view = new DataView(new SharedArrayBuffer(9));
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
1. If NewTarget is undefined, throw a TypeError exception.
|
||||
2. Let byteLength be ? ToIndex(length).
|
||||
3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength).
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var buffer = new SharedArrayBuffer();
|
||||
|
|
|
@ -20,6 +20,7 @@ info: |
|
|||
a. Let integerIndex be ? ToInteger(value).
|
||||
b. If integerIndex < 0, throw a RangeError exception.
|
||||
...
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
|
|
|
@ -20,6 +20,7 @@ info: |
|
|||
a. Let integerIndex be ? ToInteger(value).
|
||||
b. If integerIndex < 0, throw a RangeError exception.
|
||||
...
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
|
|
|
@ -18,7 +18,7 @@ info: |
|
|||
1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%",
|
||||
«[[ArrayBufferData]], [[ArrayBufferByteLength]]» ).
|
||||
...
|
||||
features: [Symbol, Reflect.construct]
|
||||
features: [SharedArrayBuffer, Symbol, Reflect.construct]
|
||||
---*/
|
||||
|
||||
function newTarget() {}
|
||||
|
|
|
@ -17,7 +17,7 @@ info: |
|
|||
a. Let realm be ? GetFunctionRealm(constructor).
|
||||
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
|
||||
[...]
|
||||
features: [cross-realm, Reflect]
|
||||
features: [SharedArrayBuffer, cross-realm, Reflect]
|
||||
---*/
|
||||
|
||||
var other = $262.createRealm().global;
|
||||
|
|
|
@ -18,7 +18,7 @@ info: |
|
|||
1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%",
|
||||
«[[ArrayBufferData]], [[ArrayBufferByteLength]]» ).
|
||||
...
|
||||
features: [Reflect.construct]
|
||||
features: [SharedArrayBuffer, Reflect.construct]
|
||||
---*/
|
||||
|
||||
var arrayBuffer = Reflect.construct(SharedArrayBuffer, [8], Object);
|
||||
|
|
|
@ -11,7 +11,7 @@ info: |
|
|||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [Symbol.toStringTag]
|
||||
features: [SharedArrayBuffer, Symbol.toStringTag]
|
||||
---*/
|
||||
|
||||
assert.sameValue(SharedArrayBuffer.prototype[Symbol.toStringTag], 'SharedArrayBuffer');
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/*---
|
||||
description: Requires this value to have a [[ArrayBufferData]] internal slot
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: Throws a TypeError exception when invoked as a function
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var getter = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
description: >
|
||||
get SharedArrayBuffer.prototype.byteLength.length is 0.
|
||||
includes: [propertyHelper.js]
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength");
|
||||
|
|
|
@ -6,6 +6,7 @@ description: >
|
|||
get SharedArrayBuffer.prototype.byteLength
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
description: >
|
||||
"byteLength" property of SharedArrayBuffer.prototype
|
||||
includes: [propertyHelper.js]
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength");
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: Return value from [[ByteLength]] internal slot
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var ab1 = new SharedArrayBuffer(0);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
description: >
|
||||
Throws a TypeError exception when `this` does not have a [[ArrayBufferData]]
|
||||
internal slot
|
||||
features: [DataView, Int8Array]
|
||||
features: [SharedArrayBuffer, DataView, Int8Array]
|
||||
---*/
|
||||
|
||||
var getter = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
/*---
|
||||
esid: sec-get-sharedarraybuffer.prototype.bytelength
|
||||
description: Throws a TypeError exception when `this` is an ArrayBuffer
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
var getter = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: Throws a TypeError exception when `this` is not Object
|
||||
features: [Symbol]
|
||||
features: [SharedArrayBuffer, Symbol]
|
||||
---*/
|
||||
|
||||
var getter = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
description: >
|
||||
The `SharedArrayBuffer.prototype.constructor` property descriptor.
|
||||
includes: [propertyHelper.js]
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.sameValue(SharedArrayBuffer.prototype.constructor, SharedArrayBuffer);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/*---
|
||||
description: >
|
||||
Throws a TypeError if `this` does not have an [[ArrayBufferData]] internal slot.
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
|
|
|
@ -7,7 +7,7 @@ description: >
|
|||
Throws a TypeError if `this` is not an Object.
|
||||
info: |
|
||||
SharedArrayBuffer.prototype.slice ( start, end )
|
||||
features: [Symbol]
|
||||
features: [SharedArrayBuffer, Symbol]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
Annex B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||
[[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js]
|
||||
features: [SharedArrayBuffer]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(SharedArrayBuffer.prototype, "slice");
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue