Skip to content

Commit 0f9038a

Browse files
aykevldeadprogram
authored andcommitted
wasm: remove _callbackShutdown
It doesn't seem to be used. This commit is somewhat related to this commit: golang/go@6dd70fc Most of the things don't port over nicely.
1 parent 343bb42 commit 0f9038a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

targets/wasm_exec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@
415415
this,
416416
];
417417
this._refs = new Map();
418-
this._callbackShutdown = false;
419418
this.exited = false;
420419

421420
const mem = new DataView(this._inst.exports.memory.buffer)
@@ -472,12 +471,6 @@
472471

473472
const go = new Go();
474473
WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
475-
process.on("exit", (code) => { // Node.js exits if no callback is pending
476-
if (code === 0 && !go.exited) {
477-
// deadlock, make Go print error and stack traces
478-
go._callbackShutdown = true;
479-
}
480-
});
481474
return go.run(result.instance);
482475
}).catch((err) => {
483476
throw err;

0 commit comments

Comments
 (0)