mirror of https://github.com/tc39/test262.git
Promise.any: string iterable should not be rejected (adds error message for clarity)
This commit is contained in:
parent
e0abeaa4df
commit
55b22d8d9f
|
@ -27,8 +27,8 @@ flags: [async]
|
|||
try {
|
||||
Promise.any('').then(function(v) {
|
||||
assert.sameValue(v.length, 0);
|
||||
}, function() {
|
||||
$DONE('The promise should be resolved, but was rejected');
|
||||
}, function(error) {
|
||||
$DONE(`The promise should be resolved, but was rejected with error: ${error.message}`);
|
||||
}).then($DONE, $DONE);
|
||||
} catch (error) {
|
||||
$DONE(`The promise should be resolved, but threw an exception: ${error.message}`);
|
||||
|
|
Loading…
Reference in New Issue