mirror of https://github.com/tc39/test262.git
harness/asyncHelpers.js: Update throwsAsync to not succeed on a bad thenable
Fixes #4186
This commit is contained in:
parent
7a916718cf
commit
feb400c685
|
@ -72,7 +72,7 @@ assert.throwsAsync = function (expectedErrorConstructor, func, message) {
|
|||
}
|
||||
|
||||
try {
|
||||
resolve(res.then(
|
||||
resolve(Promise.resolve(res).then(
|
||||
function () {
|
||||
fail(expectation + " but no exception was thrown at all");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue