Atomics: use .then($DONE, $DONE) wherever possible

This commit is contained in:
Rick Waldron 2020-06-24 15:46:37 -04:00
parent 362d7af20f
commit ae7b606cc2
16 changed files with 16 additions and 16 deletions

View File

@ -57,4 +57,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -67,6 +67,6 @@ Promise.all([
'C not-equal,not-equal,not-equal,not-equal,not-equal',
'All C values are not equal'
);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -25,4 +25,4 @@ Promise.all([Atomics.waitAsync(i64a, 0, 0n, -1).value]).then(([outcome]) => {
'timed-out',
'Atomics.waitAsync(i64a, 0, 0n, -1).value resolves to "timed-out"'
);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -59,4 +59,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -68,4 +68,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -41,4 +41,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -57,4 +57,4 @@ Promise.all([
assert.sameValue(outcomes[1], 'ok');
assert.sameValue(outcomes[2], 'ok');
assert.sameValue(outcomes[3], 'ok');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -40,4 +40,4 @@ const toPrimitive = {
Promise.all([Atomics.store(i64a, 0, 42n), Atomics.waitAsync(i64a, 0, 0n).value]).then(outcomes => {
assert.sameValue(outcomes[0], 42n);
assert.sameValue(outcomes[1], 'not-equal');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -60,4 +60,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -66,5 +66,5 @@ Promise.all([
'C not-equal,not-equal,not-equal,not-equal,not-equal',
'All C values are not equal'
);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -30,4 +30,4 @@ Promise.all([
'timed-out',
'Atomics.waitAsync(i32a, 0, 0, -1).value resolves to "timed-out"'
);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -60,4 +60,4 @@ Promise.all([
assert.sameValue(outcomes[0], "timed-out");
assert.sameValue(outcomes[1], "timed-out");
assert.sameValue(outcomes[2], "timed-out");
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -69,4 +69,4 @@ Promise.all([
assert.sameValue(outcomes[0], "timed-out");
assert.sameValue(outcomes[1], "timed-out");
assert.sameValue(outcomes[2], "timed-out");
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -44,4 +44,4 @@ Promise.all([
assert.sameValue(outcomes[0], 'timed-out');
assert.sameValue(outcomes[1], 'timed-out');
assert.sameValue(outcomes[2], 'timed-out');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -60,4 +60,4 @@ Promise.all([
assert.sameValue(outcomes[1], 'ok');
assert.sameValue(outcomes[2], 'ok');
assert.sameValue(outcomes[3], 'ok');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -46,4 +46,4 @@ Promise.all([
]).then(outcomes => {
assert.sameValue(outcomes[0], 42);
assert.sameValue(outcomes[1], 'not-equal');
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);