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]]:
false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.toStringTag]
features: [Atomics, Symbol.toStringTag]
---*/
assert.sameValue(Atomics[Symbol.toStringTag], 'Atomics');

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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() {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,6 +5,7 @@
description: >
"byteLength" property of SharedArrayBuffer.prototype
includes: [propertyHelper.js]
features: [SharedArrayBuffer]
---*/
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.
/*---
description: Return value from [[ByteLength]] internal slot
features: [SharedArrayBuffer]
---*/
var ab1 = new SharedArrayBuffer(0);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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