tc39 / test262

Official ECMAScript Conformance Test Suite
Other
2.41k stars 468 forks source link

Fix test regression in asyncHelpers.js #4197

Closed jedel1043 closed 3 months ago

jedel1043 commented 3 months ago

Some recent changes to harness/asyncHelpers.js regressed some harness tests; test/harness/asyncHelpers-throwsAsync-func-throws-sync.js and test/harness/asyncHelpers-throwsAsync-no-arg.js to be more specific. The cause of this was fa3d0246e74da7844843ebfb4c71453c616b923a and feb400c68598138b4e5a056c69b94bc1108d8a51, which made some changes that broke those two tests.

This PR fixes this by slightly modifying asyncHelpers.js so that it passes the two tests, and also adds a new test to ensure #4186 is still fixed even with the new changes.