mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
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:
committed by
Ron Evans
parent
665c3bdaa6
commit
41e093d7bb
+1
-1
@@ -12,5 +12,5 @@
|
||||
"ldflags": [
|
||||
"-allow-undefined"
|
||||
],
|
||||
"emulator": ["cwa"]
|
||||
"emulator": ["node", "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);
|
||||
|
||||
Reference in New Issue
Block a user