diff options
author | Ayke van Laethem <[email protected]> | 2019-01-21 14:49:16 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-03-04 21:58:40 +0100 |
commit | 41e093d7bbeb8ba2cf4bb36d3e566afcb6562d27 (patch) | |
tree | 632e75b3a33491daceb6ff16650e0dd2d87af198 /targets | |
parent | 665c3bdaa65678e1905c16e63ee6c71aa4d6172c (diff) | |
download | tinygo-41e093d7bbeb8ba2cf4bb36d3e566afcb6562d27.tar.gz tinygo-41e093d7bbeb8ba2cf4bb36d3e566afcb6562d27.zip |
wasm: switch emulator to node.js
Unfortunately, the olin/cwa emulator does not handle floats correctly.
Node.js does, and because it is also supported by the Go WebAssembly
implementation it has better support in general.
Diffstat (limited to 'targets')
-rw-r--r-- | targets/wasm.json | 2 | ||||
-rw-r--r-- | targets/wasm_exec.js | 1 |
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); |