Add features tags for Atomics and SharedArrayBuffer (#1494)

* Add features tags for Atomics

* Add features tags for SharedArrayBuffer
This commit is contained in:
Leo Balter 2018-03-19 19:51:32 -04:00 committed by GitHub
parent 431e6cb20c
commit 478f5b4c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
133 changed files with 133 additions and 43 deletions

View File

@ -11,7 +11,7 @@ info: |
This property has the attributes { [[Writable]]: false, [[Enumerable]]: This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }. false, [[Configurable]]: true }.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Symbol.toStringTag] features: [Atomics, Symbol.toStringTag]
---*/ ---*/
assert.sameValue(Atomics[Symbol.toStringTag], 'Atomics'); assert.sameValue(Atomics[Symbol.toStringTag], 'Atomics');

View File

@ -6,6 +6,7 @@
esid: sec-atomics.add esid: sec-atomics.add
description: Testing descriptor property of Atomics.add description: Testing descriptor property of Atomics.add
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "add"); verifyWritable(Atomics, "add");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.add.length, 3); assert.sameValue(Atomics.add.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.add
description: > description: >
Atomics.add.name is "add". Atomics.add.name is "add".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.add.name, "add"); assert.sameValue(Atomics.add.name, "add");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.add
description: > description: >
Test Atomics.add on non-shared integer TypedArrays Test Atomics.add on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.add
description: > description: >
Test Atomics.add on shared non-integer TypedArrays Test Atomics.add on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.and esid: sec-atomics.and
description: Testing descriptor property of Atomics.and description: Testing descriptor property of Atomics.and
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "and"); verifyWritable(Atomics, "and");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.and.length, 3); assert.sameValue(Atomics.and.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.and
description: > description: >
Atomics.and.name is "and". Atomics.and.name is "and".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.and.name, "and"); assert.sameValue(Atomics.and.name, "and");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.and
description: > description: >
Test Atomics.and on non-shared integer TypedArrays Test Atomics.and on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.and
description: > description: >
Test Atomics.and on shared non-integer TypedArrays Test Atomics.and on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.compareexchange esid: sec-atomics.compareexchange
description: Testing descriptor property of Atomics.compareExchange description: Testing descriptor property of Atomics.compareExchange
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "compareExchange"); verifyWritable(Atomics, "compareExchange");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.compareExchange.length, 4); assert.sameValue(Atomics.compareExchange.length, 4);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.compareexchange
description: > description: >
Atomics.compareExchange.name is "compareExchange". Atomics.compareExchange.name is "compareExchange".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.compareExchange.name, "compareExchange"); assert.sameValue(Atomics.compareExchange.name, "compareExchange");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.compareexchange
description: > description: >
Test Atomics.compareExchange on non-shared integer TypedArrays Test Atomics.compareExchange on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.compareexchange
description: > description: >
Test Atomics.compareExchange on shared non-integer TypedArrays Test Atomics.compareExchange on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.exchange esid: sec-atomics.exchange
description: Testing descriptor property of Atomics.exchange description: Testing descriptor property of Atomics.exchange
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "exchange"); verifyWritable(Atomics, "exchange");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.exchange.length, 3); assert.sameValue(Atomics.exchange.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.exchange
description: > description: >
Atomics.exchange.name is "exchange". Atomics.exchange.name is "exchange".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.exchange.name, "exchange"); assert.sameValue(Atomics.exchange.name, "exchange");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.exchange
description: > description: >
Test Atomics.exchange on non-shared integer TypedArrays Test Atomics.exchange on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.exchange
description: > description: >
Test Atomics.exchange on shared non-integer TypedArrays Test Atomics.exchange on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -5,6 +5,7 @@
esid: sec-atomics.islockfree esid: sec-atomics.islockfree
description: > description: >
Test isLockFree on various non-intuitive arguments Test isLockFree on various non-intuitive arguments
features: [Atomics]
---*/ ---*/
assert.sameValue(false, Atomics.isLockFree(hide(3, Number.NaN))); assert.sameValue(false, Atomics.isLockFree(hide(3, Number.NaN)));

View File

@ -6,6 +6,7 @@
esid: sec-atomics.islockfree esid: sec-atomics.islockfree
description: Testing descriptor property of Atomics.add description: Testing descriptor property of Atomics.add
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "add"); verifyWritable(Atomics, "add");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.isLockFree.length, 1); assert.sameValue(Atomics.isLockFree.length, 1);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.islockfree
description: > description: >
Atomics.isLockFree.name is "isLockFree". Atomics.isLockFree.name is "isLockFree".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.isLockFree.name, "isLockFree"); assert.sameValue(Atomics.isLockFree.name, "isLockFree");

View File

@ -5,6 +5,7 @@
esid: sec-atomics.islockfree esid: sec-atomics.islockfree
description: > description: >
Test isLockFree on nonnegative integer arguments Test isLockFree on nonnegative integer arguments
features: [Atomics]
---*/ ---*/
var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8, var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8,

View File

@ -6,6 +6,7 @@
esid: sec-atomics.load esid: sec-atomics.load
description: Testing descriptor property of Atomics.load description: Testing descriptor property of Atomics.load
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "load"); verifyWritable(Atomics, "load");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.load.length, 2); assert.sameValue(Atomics.load.length, 2);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.load
description: > description: >
Atomics.load.name is "load". Atomics.load.name is "load".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.load.name, "load"); assert.sameValue(Atomics.load.name, "load");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.load
description: > description: >
Test Atomics.load on non-shared integer TypedArrays Test Atomics.load on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.load
description: > description: >
Test Atomics.load on shared non-integer TypedArrays Test Atomics.load on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.or esid: sec-atomics.or
description: Testing descriptor property of Atomics.or description: Testing descriptor property of Atomics.or
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "or"); verifyWritable(Atomics, "or");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.or.length, 3); assert.sameValue(Atomics.or.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.or
description: > description: >
Atomics.or.name is "or". Atomics.or.name is "or".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.or.name, "or"); assert.sameValue(Atomics.or.name, "or");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.or
description: > description: >
Test Atomics.or on non-shared integer TypedArrays Test Atomics.or on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.or
description: > description: >
Test Atomics.or on shared non-integer TypedArrays Test Atomics.or on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -20,6 +20,7 @@ info: |
has the attributes { [[Writable]]: true, [[Enumerable]]: false, has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified. [[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(typeof Atomics, "object", "no [[Call]]"); assert.sameValue(typeof Atomics, "object", "no [[Call]]");

View File

@ -10,6 +10,7 @@ info: |
The value of the [[Prototype]] internal slot of the Atomics object is the The value of the [[Prototype]] internal slot of the Atomics object is the
intrinsic object %ObjectPrototype%. intrinsic object %ObjectPrototype%.
features: [Atomics]
---*/ ---*/
var proto = Object.getPrototypeOf(Atomics); var proto = Object.getPrototypeOf(Atomics);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.store esid: sec-atomics.store
description: Testing descriptor property of Atomics.store description: Testing descriptor property of Atomics.store
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "store"); verifyWritable(Atomics, "store");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.store.length, 3); assert.sameValue(Atomics.store.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.store
description: > description: >
Atomics.store.name is "store". Atomics.store.name is "store".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.store.name, "store"); assert.sameValue(Atomics.store.name, "store");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.store
description: > description: >
Test Atomics.store on non-shared integer TypedArrays Test Atomics.store on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.store
description: > description: >
Test Atomics.store on shared non-integer TypedArrays Test Atomics.store on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.sub esid: sec-atomics.sub
description: Testing descriptor property of Atomics.sub description: Testing descriptor property of Atomics.sub
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "sub"); verifyWritable(Atomics, "sub");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.sub.length, 3); assert.sameValue(Atomics.sub.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.sub
description: > description: >
Atomics.sub.name is "sub". Atomics.sub.name is "sub".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.sub.name, "sub"); assert.sameValue(Atomics.sub.name, "sub");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.sub
description: > description: >
Test Atomics.sub on non-shared integer TypedArrays Test Atomics.sub on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.sub
description: > description: >
Test Atomics.sub on shared non-integer TypedArrays Test Atomics.sub on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.wait esid: sec-atomics.wait
description: Testing descriptor property of Atomics.wait description: Testing descriptor property of Atomics.wait
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "wait"); verifyWritable(Atomics, "wait");

View File

@ -7,6 +7,7 @@ description: >
Test that Atomics.wait returns the right result when it timed out and that Test that Atomics.wait returns the right result when it timed out and that
the time to time out is reasonable. the time to time out is reasonable.
includes: [atomicsHelper.js] includes: [atomicsHelper.js]
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -6,6 +6,7 @@ esid: sec-atomics.wait
description: > description: >
Test Atomics.wait on arrays that allow atomic operations, Test Atomics.wait on arrays that allow atomic operations,
in an Agent that is allowed to wait. in an Agent that is allowed to wait.
features: [Atomics]
---*/ ---*/
// Let's assume 'wait' is not allowed on the main thread, // Let's assume 'wait' is not allowed on the main thread,

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.wait.length, 4); assert.sameValue(Atomics.wait.length, 4);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.wait
description: > description: >
Atomics.wait.name is "wait". Atomics.wait.name is "wait".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.wait.name, "wait"); assert.sameValue(Atomics.wait.name, "wait");

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wait esid: sec-atomics.wait
description: > description: >
Test that Atomics.wait times out with a negative timeout Test that Atomics.wait times out with a negative timeout
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -7,6 +7,7 @@ description: >
Test that Atomics.wait actually waits and does not spuriously wake Test that Atomics.wait actually waits and does not spuriously wake
up when the memory value is changed. up when the memory value is changed.
includes: [atomicsHelper.js] includes: [atomicsHelper.js]
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: > description: >
Test Atomics.wait on non-shared integer TypedArrays Test Atomics.wait on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wait
description: > description: >
Test Atomics.wait on shared non-integer TypedArrays Test Atomics.wait on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wait esid: sec-atomics.wait
description: > description: >
Test that Atomics.wait returns the right result when it was awoken. Test that Atomics.wait returns the right result when it was awoken.
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Allowed boundary cases of the third 'count' argument to Atomics.wake Allowed boundary cases of the third 'count' argument to Atomics.wake
features: [Atomics]
---*/ ---*/
var sab = new SharedArrayBuffer(4); var sab = new SharedArrayBuffer(4);

View File

@ -6,6 +6,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: Testing descriptor property of Atomics.wake description: Testing descriptor property of Atomics.wake
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "wake"); verifyWritable(Atomics, "wake");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.wake.length, 3); assert.sameValue(Atomics.wake.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.wake
description: > description: >
Atomics.wake.name is "wake". Atomics.wake.name is "wake".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.wake.name, "wake"); assert.sameValue(Atomics.wake.name, "wake");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wake
description: > description: >
Test Atomics.wake on non-shared integer TypedArrays Test Atomics.wake on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.wake
description: > description: >
Test Atomics.wake on shared non-integer TypedArrays Test Atomics.wake on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -6,6 +6,7 @@ esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes all waiters on a location, but does not Test that Atomics.wake wakes all waiters on a location, but does not
wake waiters on other locations. wake waiters on other locations.
features: [Atomics]
---*/ ---*/
var WAKEUP = 0; // Waiters on this will be woken var WAKEUP = 0; // Waiters on this will be woken

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes all waiters if that's what the count is. 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 var WAKEUP = 0; // Waiters on this will be woken

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes agents in the order they are waiting. Test that Atomics.wake wakes agents in the order they are waiting.
features: [Atomics]
---*/ ---*/
var NUMAGENT = 3; var NUMAGENT = 3;

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes zero waiters if the count is NaN Test that Atomics.wake wakes zero waiters if the count is NaN
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes zero waiters if the count is negative Test that Atomics.wake wakes zero waiters if the count is negative
features: [Atomics]
---*/ ---*/
$262.agent.start( $262.agent.start(

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes one waiter if that's what the count is. Test that Atomics.wake wakes one waiter if that's what the count is.
features: [Atomics]
---*/ ---*/
var NUMAGENT = 3; var NUMAGENT = 3;

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes two waiters if that's what the count is. Test that Atomics.wake wakes two waiters if that's what the count is.
features: [Atomics]
---*/ ---*/

View File

@ -5,6 +5,7 @@
esid: sec-atomics.wake esid: sec-atomics.wake
description: > description: >
Test that Atomics.wake wakes zero waiters if that's what the count is. Test that Atomics.wake wakes zero waiters if that's what the count is.
features: [Atomics]
---*/ ---*/

View File

@ -6,6 +6,7 @@
esid: sec-atomics.xor esid: sec-atomics.xor
description: Testing descriptor property of Atomics.xor description: Testing descriptor property of Atomics.xor
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
verifyWritable(Atomics, "xor"); verifyWritable(Atomics, "xor");

View File

@ -21,6 +21,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: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.xor.length, 3); assert.sameValue(Atomics.xor.length, 3);

View File

@ -7,6 +7,7 @@ esid: sec-atomics.xor
description: > description: >
Atomics.xor.name is "xor". Atomics.xor.name is "xor".
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Atomics]
---*/ ---*/
assert.sameValue(Atomics.xor.name, "xor"); assert.sameValue(Atomics.xor.name, "xor");

View File

@ -6,7 +6,7 @@ esid: sec-atomics.xor
description: > description: >
Test Atomics.xor on non-shared integer TypedArrays Test Atomics.xor on non-shared integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var ab = new ArrayBuffer(16); var ab = new ArrayBuffer(16);

View File

@ -6,7 +6,7 @@ esid: sec-atomics.xor
description: > description: >
Test Atomics.xor on shared non-integer TypedArrays Test Atomics.xor on shared non-integer TypedArrays
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [TypedArray] features: [Atomics, TypedArray]
---*/ ---*/
var sab = new SharedArrayBuffer(1024); var sab = new SharedArrayBuffer(1024);

View File

@ -18,6 +18,7 @@ info: |
bytes. If it is impossible to create such a Shared Data Block, bytes. If it is impossible to create such a Shared Data Block,
throw a RangeError exception. throw a RangeError exception.
... ...
features: [SharedArrayBuffer]
---*/ ---*/
assert.throws(RangeError, function() { assert.throws(RangeError, function() {

View File

@ -18,7 +18,7 @@ info: |
... ...
3. Let block be ? CreateByteDataBlock(byteLength). 3. Let block be ? CreateByteDataBlock(byteLength).
... ...
features: [Reflect.construct] features: [SharedArrayBuffer, Reflect.construct]
---*/ ---*/
function DummyError() {} function DummyError() {}

View File

@ -5,7 +5,7 @@
/*--- /*---
esid: sec-createsharedbytedatablock esid: sec-createsharedbytedatablock
description: All bytes are initialized to zero description: All bytes are initialized to zero
features: [DataView] features: [SharedArrayBuffer, DataView]
---*/ ---*/
var view = new DataView(new SharedArrayBuffer(9)); var view = new DataView(new SharedArrayBuffer(9));

View File

@ -12,6 +12,7 @@ info: |
1. If NewTarget is undefined, throw a TypeError exception. 1. If NewTarget is undefined, throw a TypeError exception.
2. Let byteLength be ? ToIndex(length). 2. Let byteLength be ? ToIndex(length).
3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength). 3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength).
features: [SharedArrayBuffer]
---*/ ---*/
var buffer = new SharedArrayBuffer(); var buffer = new SharedArrayBuffer();

View File

@ -20,6 +20,7 @@ info: |
a. Let integerIndex be ? ToInteger(value). a. Let integerIndex be ? ToInteger(value).
b. If integerIndex < 0, throw a RangeError exception. b. If integerIndex < 0, throw a RangeError exception.
... ...
features: [SharedArrayBuffer]
---*/ ---*/
assert.throws(RangeError, function() { assert.throws(RangeError, function() {

View File

@ -20,6 +20,7 @@ info: |
a. Let integerIndex be ? ToInteger(value). a. Let integerIndex be ? ToInteger(value).
b. If integerIndex < 0, throw a RangeError exception. b. If integerIndex < 0, throw a RangeError exception.
... ...
features: [SharedArrayBuffer]
---*/ ---*/
assert.throws(RangeError, function() { assert.throws(RangeError, function() {

View File

@ -18,7 +18,7 @@ info: |
1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%", 1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%",
«[[ArrayBufferData]], [[ArrayBufferByteLength]]» ). «[[ArrayBufferData]], [[ArrayBufferByteLength]]» ).
... ...
features: [Symbol, Reflect.construct] features: [SharedArrayBuffer, Symbol, Reflect.construct]
---*/ ---*/
function newTarget() {} function newTarget() {}

View File

@ -17,7 +17,7 @@ info: |
a. Let realm be ? GetFunctionRealm(constructor). a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto. b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...] [...]
features: [cross-realm, Reflect] features: [SharedArrayBuffer, cross-realm, Reflect]
---*/ ---*/
var other = $262.createRealm().global; var other = $262.createRealm().global;

View File

@ -18,7 +18,7 @@ info: |
1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%", 1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%",
«[[ArrayBufferData]], [[ArrayBufferByteLength]]» ). «[[ArrayBufferData]], [[ArrayBufferByteLength]]» ).
... ...
features: [Reflect.construct] features: [SharedArrayBuffer, Reflect.construct]
---*/ ---*/
var arrayBuffer = Reflect.construct(SharedArrayBuffer, [8], Object); var arrayBuffer = Reflect.construct(SharedArrayBuffer, [8], Object);

View File

@ -11,7 +11,7 @@ info: |
This property has the attributes { [[Writable]]: false, [[Enumerable]]: This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }. false, [[Configurable]]: true }.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Symbol.toStringTag] features: [SharedArrayBuffer, Symbol.toStringTag]
---*/ ---*/
assert.sameValue(SharedArrayBuffer.prototype[Symbol.toStringTag], 'SharedArrayBuffer'); assert.sameValue(SharedArrayBuffer.prototype[Symbol.toStringTag], 'SharedArrayBuffer');

View File

@ -4,6 +4,7 @@
/*--- /*---
description: Requires this value to have a [[ArrayBufferData]] internal slot description: Requires this value to have a [[ArrayBufferData]] internal slot
features: [SharedArrayBuffer]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {

View File

@ -3,6 +3,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: Throws a TypeError exception when invoked as a function description: Throws a TypeError exception when invoked as a function
features: [SharedArrayBuffer]
---*/ ---*/
var getter = Object.getOwnPropertyDescriptor( var getter = Object.getOwnPropertyDescriptor(

View File

@ -6,6 +6,7 @@
description: > description: >
get SharedArrayBuffer.prototype.byteLength.length is 0. get SharedArrayBuffer.prototype.byteLength.length is 0.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [SharedArrayBuffer]
---*/ ---*/
var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength"); var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength");

View File

@ -6,6 +6,7 @@ description: >
get SharedArrayBuffer.prototype.byteLength get SharedArrayBuffer.prototype.byteLength
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [SharedArrayBuffer]
---*/ ---*/
var descriptor = Object.getOwnPropertyDescriptor( var descriptor = Object.getOwnPropertyDescriptor(

View File

@ -5,6 +5,7 @@
description: > description: >
"byteLength" property of SharedArrayBuffer.prototype "byteLength" property of SharedArrayBuffer.prototype
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [SharedArrayBuffer]
---*/ ---*/
var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength"); var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength");

View File

@ -3,6 +3,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: Return value from [[ByteLength]] internal slot description: Return value from [[ByteLength]] internal slot
features: [SharedArrayBuffer]
---*/ ---*/
var ab1 = new SharedArrayBuffer(0); var ab1 = new SharedArrayBuffer(0);

View File

@ -5,7 +5,7 @@
description: > description: >
Throws a TypeError exception when `this` does not have a [[ArrayBufferData]] Throws a TypeError exception when `this` does not have a [[ArrayBufferData]]
internal slot internal slot
features: [DataView, Int8Array] features: [SharedArrayBuffer, DataView, Int8Array]
---*/ ---*/
var getter = Object.getOwnPropertyDescriptor( var getter = Object.getOwnPropertyDescriptor(

View File

@ -4,6 +4,7 @@
/*--- /*---
esid: sec-get-sharedarraybuffer.prototype.bytelength esid: sec-get-sharedarraybuffer.prototype.bytelength
description: Throws a TypeError exception when `this` is an ArrayBuffer description: Throws a TypeError exception when `this` is an ArrayBuffer
features: [SharedArrayBuffer]
---*/ ---*/
var getter = Object.getOwnPropertyDescriptor( var getter = Object.getOwnPropertyDescriptor(

View File

@ -3,7 +3,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: Throws a TypeError exception when `this` is not Object description: Throws a TypeError exception when `this` is not Object
features: [Symbol] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
var getter = Object.getOwnPropertyDescriptor( var getter = Object.getOwnPropertyDescriptor(

View File

@ -6,6 +6,7 @@
description: > description: >
The `SharedArrayBuffer.prototype.constructor` property descriptor. The `SharedArrayBuffer.prototype.constructor` property descriptor.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [SharedArrayBuffer]
---*/ ---*/
assert.sameValue(SharedArrayBuffer.prototype.constructor, SharedArrayBuffer); assert.sameValue(SharedArrayBuffer.prototype.constructor, SharedArrayBuffer);

View File

@ -5,6 +5,7 @@
/*--- /*---
description: > description: >
Throws a TypeError if `this` does not have an [[ArrayBufferData]] internal slot. Throws a TypeError if `this` does not have an [[ArrayBufferData]] internal slot.
features: [SharedArrayBuffer]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {

View File

@ -7,7 +7,7 @@ description: >
Throws a TypeError if `this` is not an Object. Throws a TypeError if `this` is not an Object.
info: | info: |
SharedArrayBuffer.prototype.slice ( start, end ) SharedArrayBuffer.prototype.slice ( start, end )
features: [Symbol] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {

View File

@ -13,6 +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: [SharedArrayBuffer]
---*/ ---*/
verifyNotEnumerable(SharedArrayBuffer.prototype, "slice"); verifyNotEnumerable(SharedArrayBuffer.prototype, "slice");

Some files were not shown because too many files have changed in this diff Show More