aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasm_exec.js
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-04-06 23:05:14 +0200
committerRon Evans <[email protected]>2020-04-12 18:41:34 +0200
commit0f9038ad2e8609e173a9a9916915cb4e982a5836 (patch)
tree063313752851a22cfae271a16b5a90c8c1ca30c5 /targets/wasm_exec.js
parent343bb426447c18251302585b094c5ceab776b079 (diff)
downloadtinygo-0f9038ad2e8609e173a9a9916915cb4e982a5836.tar.gz
tinygo-0f9038ad2e8609e173a9a9916915cb4e982a5836.zip
wasm: remove _callbackShutdown
It doesn't seem to be used. This commit is somewhat related to this commit: https://github.com/golang/go/commit/6dd70fc5e391eb7a47be5eb6353107f38b73f161 Most of the things don't port over nicely.
Diffstat (limited to 'targets/wasm_exec.js')
-rw-r--r--targets/wasm_exec.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/targets/wasm_exec.js b/targets/wasm_exec.js
index b0bee2159..85f147cd0 100644
--- a/targets/wasm_exec.js
+++ b/targets/wasm_exec.js
@@ -415,7 +415,6 @@
this,
];
this._refs = new Map();
- this._callbackShutdown = false;
this.exited = false;
const mem = new DataView(this._inst.exports.memory.buffer)
@@ -472,12 +471,6 @@
const go = new Go();
WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
- process.on("exit", (code) => { // Node.js exits if no callback is pending
- if (code === 0 && !go.exited) {
- // deadlock, make Go print error and stack traces
- go._callbackShutdown = true;
- }
- });
return go.run(result.instance);
}).catch((err) => {
throw err;