mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +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(
|
return assert.throwsAsync(
|
||||||
Test262Error,
|
Test262Error,
|
||||||
function () {
|
function () {
|
||||||
Promise.try(function () { throw new Test262Error(); })
|
return Promise.try(function () { throw new Test262Error(); })
|
||||||
},
|
},
|
||||||
"error thrown from callback must become a rejection"
|
"error thrown from callback must become a rejection"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user