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.
This commit is contained in:
Ayke van Laethem
2019-01-21 14:49:16 +01:00
committed by Ron Evans
parent 665c3bdaa6
commit 41e093d7bb
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -12,5 +12,5 @@
"ldflags": [
"-allow-undefined"
],
"emulator": ["cwa"]
"emulator": ["node", "targets/wasm_exec.js"]
}
-1
View File
@@ -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);