We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f96a50 commit 91563cfCopy full SHA for 91563cf
targets/wasm_exec.js
@@ -531,7 +531,10 @@
531
532
const go = new Go();
533
WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
534
- return go.run(result.instance);
+ go.run(result.instance).then((result) => {
535
+ process.exit(result);
536
+ }).
537
+ catch((e) => { throw e });
538
}).catch((err) => {
539
console.error(err);
540
process.exit(1);
0 commit comments