Skip to content

Commit

Permalink
harness/asyncHelpers.js: Update throwsAsync to not succeed on a bad t…
Browse files Browse the repository at this point in the history
…henable

Fixes #4186
  • Loading branch information
gibson042 committed Aug 1, 2024
1 parent 7a91671 commit 523eb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harness/asyncHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
Expand Down

0 comments on commit 523eb97

Please sign in to comment.