Skip to content

Commit feb400c

Browse files
gibson042Ms2ger
authored andcommitted
harness/asyncHelpers.js: Update throwsAsync to not succeed on a bad thenable
Fixes #4186
1 parent 7a91671 commit feb400c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harness/asyncHelpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ assert.throwsAsync = function (expectedErrorConstructor, func, message) {
7272
}
7373

7474
try {
75-
resolve(res.then(
75+
resolve(Promise.resolve(res).then(
7676
function () {
7777
fail(expectation + " but no exception was thrown at all");
7878
},

0 commit comments

Comments
 (0)