mirror of https://github.com/tc39/test262.git
Case: use .then($DONE, $DONE) wherever possible
This commit is contained in:
parent
a816c03735
commit
db618e202b
|
@ -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);
|
||||
|
|
|
@ -27,4 +27,4 @@ ctorPromise.then(() => {
|
|||
return c.ref().then(value => {
|
||||
assert.sameValue(value, 42, 'function return');
|
||||
});
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
}).then($DONE, $DONE);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -113,4 +113,4 @@ Promise.all([
|
|||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
}).then($DONE, $DONE);
|
||||
|
|
|
@ -113,5 +113,5 @@ Promise.all([
|
|||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
}).then($DONE, $DONE);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue