mirror of https://github.com/tc39/test262.git
Promise.any: expected rejection shouldn't end with error message.
This commit is contained in:
parent
55b22d8d9f
commit
47b3858978
|
@ -10,6 +10,7 @@ features: [Promise.any]
|
|||
---*/
|
||||
|
||||
Promise.any([])
|
||||
.then(function() {
|
||||
$DONE('The promise should not be fulfilled.');
|
||||
}, $DONE);
|
||||
.then(
|
||||
() => $DONE('The promise should be rejected, but was resolved'),
|
||||
() => $DONE()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue