Index: test/mjsunit/wasm/js-api.js |
diff --git a/test/mjsunit/wasm/js-api.js b/test/mjsunit/wasm/js-api.js |
index d7a3ea1358629eaf664f7bc76b3ab5a3d02ad5f7..ec07cfe6b4d1623750b78265cbe3c9eae6bab3d4 100644 |
--- a/test/mjsunit/wasm/js-api.js |
+++ b/test/mjsunit/wasm/js-api.js |
@@ -587,15 +587,11 @@ assertEq(instantiate.length, 1); |
assertEq(instantiate.name, "instantiate"); |
function assertInstantiateError(args, err, msg) { |
var error = null; |
- try { |
- instantiate(...args).catch(e => error = e); |
- } catch(e) { |
- error = e; |
- } |
+ instantiate(...args).catch(e => error = e); |
drainJobQueue(); |
assertEq(error instanceof err, true); |
assertEq(Boolean(error.stack.match("js-api.js")), true); |
- //TOassertEq(Boolean(error.message.match(msg)), true); |
+ //TODO assertEq(Boolean(error.message.match(msg)), true); |
} |
var scratch_memory = new WebAssembly.Memory(new ArrayBuffer(10)); |
assertInstantiateError([], TypeError, /requires more than 0 arguments/); |