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.
Этот коммит содержится в:
Ayke van Laethem 2019-01-21 14:49:16 +01:00 коммит произвёл Ron Evans
родитель 665c3bdaa6
коммит 41e093d7bb
2 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -12,5 +12,5 @@
"ldflags": [ "ldflags": [
"-allow-undefined" "-allow-undefined"
], ],
"emulator": ["cwa"] "emulator": ["node", "targets/wasm_exec.js"]
} }

Просмотреть файл

@ -427,7 +427,6 @@
if (code === 0 && !go.exited) { if (code === 0 && !go.exited) {
// deadlock, make Go print error and stack traces // deadlock, make Go print error and stack traces
go._callbackShutdown = true; go._callbackShutdown = true;
go._inst.exports.run();
} }
}); });
return go.run(result.instance); return go.run(result.instance);