Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion targets/wasm_exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,10 @@

const go = new Go();
WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
return go.run(result.instance);
go.run(result.instance).then((result) => {
process.exit(result);
}).
catch((e) => { throw e });
Comment on lines +534 to +537
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seem to be some whitespace issues here?

}).catch((err) => {
console.error(err);
process.exit(1);
Expand Down