Index: test/mjsunit/wasm/js-api.js |
diff --git a/test/mjsunit/wasm/js-api.js b/test/mjsunit/wasm/js-api.js |
index 0c68f9bed4bff0f8920d1f5387b88a2a228218aa..403bfb4370a0631893f05d5578aaf8ae9137f913 100644 |
--- a/test/mjsunit/wasm/js-api.js |
+++ b/test/mjsunit/wasm/js-api.js |
@@ -547,12 +547,7 @@ assertEq(compile.length, 1); |
assertEq(compile.name, "compile"); |
function assertCompileError(args, err, msg) { |
var error = null; |
- try { |
- compile(...args).catch(e => error = e); |
- } catch (e) { |
- // TODO: error shouldn't be thrown, but should be globbed onto the promise. |
- error = e; |
- } |
+ compile(...args).catch(e => error = e); |
drainJobQueue(); |
assertEq(error instanceof err, true); |
assertEq(Boolean(error.stack.match("js-api.js")), true); |