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

This commit is contained in:
Rick Waldron 2020-06-24 15:32:58 -04:00
parent a816c03735
commit db618e202b
9 changed files with 9 additions and 9 deletions

View File

@ -32,4 +32,4 @@ ctorPromise.then(() => {
assert.sameValue(value, 42, 'return from generator method');
assert.sameValue(done, true, 'iterator is done');
});
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -27,4 +27,4 @@ ctorPromise.then(() => {
return c.ref().then(value => {
assert.sameValue(value, 42, 'function return');
});
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -113,4 +113,4 @@ Promise.all([
assert.sameValue(results[4].value, 1);
assert.sameValue(results[5].value, 1);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -113,5 +113,5 @@ Promise.all([
assert.sameValue(results[4].value, 1);
assert.sameValue(results[5].value, 1);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -113,4 +113,4 @@ Promise.all([
assert.sameValue(results[4], 1);
assert.sameValue(results[5], 1);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -113,5 +113,5 @@ Promise.all([
assert.sameValue(results[4], 1);
assert.sameValue(results[5], 1);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -28,5 +28,5 @@ iter.next().then(result => {
assert.sameValue(result.value, undefined);
assert.sameValue(result.done, true);
assert.sameValue(x, 4);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);
}, $DONE).catch($DONE);

View File

@ -29,5 +29,5 @@ iter.next().then(result => {
assert.sameValue(result.value, undefined);
assert.sameValue(result.done, true);
assert.sameValue(x.prop, 22);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);
}, $DONE).catch($DONE);

View File

@ -27,5 +27,5 @@ iter.next().then(result => {
assert.sameValue(result.value, undefined);
assert.sameValue(result.done, true);
assert.sameValue(x, 4);
}, $DONE).then($DONE, $DONE);
}).then($DONE, $DONE);
}, $DONE).catch($DONE);