mirror of https://github.com/tc39/test262.git
Atomics.waitAsync: more guards against false positive test passing (#2678)
This commit is contained in:
parent
b5650d23a5
commit
51e73466ee
|
@ -19,6 +19,7 @@ info: |
|
|||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, computed-property-names, Atomics, arrow-function]
|
||||
flags: [async]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4)
|
||||
|
|
|
@ -19,6 +19,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, computed-property-names, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4)
|
||||
|
|
|
@ -25,6 +25,7 @@ info: |
|
|||
flags: [async]
|
||||
features: [Atomics.waitAsync, TypedArray, SharedArrayBuffer, destructuring-binding, Atomics, arrow-function]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 8)
|
||||
|
|
|
@ -25,6 +25,7 @@ info: |
|
|||
flags: [async]
|
||||
features: [Atomics.waitAsync, TypedArray, SharedArrayBuffer, destructuring-binding, Atomics, arrow-function]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 8)
|
||||
|
|
|
@ -24,6 +24,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, TypedArray, SharedArrayBuffer, destructuring-binding, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 8)
|
||||
|
|
|
@ -24,6 +24,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, TypedArray, SharedArrayBuffer, destructuring-binding, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 8)
|
||||
|
|
|
@ -31,6 +31,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, computed-property-names, Atomics]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const i32a = new Int32Array(
|
||||
new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4)
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, Atomics, TypedArray, SharedArrayBuffer]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const index = {
|
||||
valueOf() {
|
||||
|
|
|
@ -29,6 +29,8 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, Atomics, TypedArray, SharedArrayBuffer]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const timeout = {
|
||||
valueOf() {
|
||||
throw new Test262Error("timeout coerced");
|
||||
|
|
|
@ -29,6 +29,7 @@ info: |
|
|||
|
||||
features: [Atomics.waitAsync, Atomics, TypedArray, SharedArrayBuffer]
|
||||
---*/
|
||||
assert.sameValue(typeof Atomics.waitAsync, 'function');
|
||||
|
||||
const value = {
|
||||
valueOf() {
|
||||
|
|
Loading…
Reference in New Issue