aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--targets/wasm.json2
-rw-r--r--targets/wasm_exec.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/targets/wasm.json b/targets/wasm.json
index d7eab5a53..7a497cccb 100644
--- a/targets/wasm.json
+++ b/targets/wasm.json
@@ -12,5 +12,5 @@
"ldflags": [
"-allow-undefined"
],
- "emulator": ["cwa"]
+ "emulator": ["node", "targets/wasm_exec.js"]
}
diff --git a/targets/wasm_exec.js b/targets/wasm_exec.js
index 2f7b3d233..0fc923056 100644
--- a/targets/wasm_exec.js
+++ b/targets/wasm_exec.js
@@ -427,7 +427,6 @@
if (code === 0 && !go.exited) {
// deadlock, make Go print error and stack traces
go._callbackShutdown = true;
- go._inst.exports.run();
}
});
return go.run(result.instance);