mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Add missing return
statement to throwsAsync
callback
This callback is expected to return a thenable.
This commit is contained in:
parent
5217ef396e
commit
232dfc7b60
@ -13,7 +13,7 @@ asyncTest(function () {
|
||||
return assert.throwsAsync(
|
||||
Test262Error,
|
||||
function () {
|
||||
Promise.try(function () { throw new Test262Error(); })
|
||||
return Promise.try(function () { throw new Test262Error(); })
|
||||
},
|
||||
"error thrown from callback must become a rejection"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user