Atomics.waitAsync: prevent in-agent tests from hanging by checking for Atomics.waitAsync at start of test

This commit is contained in:
Rick Waldron 2020-05-08 10:01:32 -04:00
parent f1b0a1e270
commit 914ab0280c
25 changed files with 34 additions and 0 deletions

View File

@ -18,6 +18,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
$262.agent.start(`

View File

@ -8,6 +8,7 @@ description: >
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
$262.agent.start(`
(async () => {

View File

@ -18,6 +18,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;

View File

@ -18,6 +18,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;

View File

@ -26,6 +26,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -25,6 +25,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.small;

View File

@ -20,6 +20,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;

View File

@ -23,6 +23,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
$262.agent.start(`

View File

@ -21,6 +21,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;

View File

@ -33,6 +33,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
$262.agent.start(`

View File

@ -20,6 +20,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;

View File

@ -24,6 +24,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
$262.agent.start(`

View File

@ -18,6 +18,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
$262.agent.start(`

View File

@ -22,6 +22,7 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const WAIT_INDEX = 0;
const RUNNING = 1;

View File

@ -26,6 +26,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const WAIT_INDEX = 0;
const RUNNING = 1;
const NUMAGENT = 2;

View File

@ -24,6 +24,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const value = 42;

View File

@ -24,6 +24,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const NUMAGENT = 2;
const RUNNING = 4;

View File

@ -9,6 +9,8 @@ flags: [async]
includes: [atomicsHelper.js]
features: [Atomics.waitAsync, SharedArrayBuffer, TypedArray, Atomics]
---*/
assert.sameValue(typeof Atomics.waitAsync, 'function');
const RUNNING = 1;
const TIMEOUT = $262.agent.timeouts.huge;