wasm: remove _callbackShutdown
It doesn't seem to be used.
This commit is somewhat related to this commit:
6dd70fc5e3
Most of the things don't port over nicely.
Этот коммит содержится в:
родитель
343bb42644
коммит
0f9038ad2e
1 изменённых файлов: 0 добавлений и 7 удалений
|
@ -415,7 +415,6 @@
|
||||||
this,
|
this,
|
||||||
];
|
];
|
||||||
this._refs = new Map();
|
this._refs = new Map();
|
||||||
this._callbackShutdown = false;
|
|
||||||
this.exited = false;
|
this.exited = false;
|
||||||
|
|
||||||
const mem = new DataView(this._inst.exports.memory.buffer)
|
const mem = new DataView(this._inst.exports.memory.buffer)
|
||||||
|
@ -472,12 +471,6 @@
|
||||||
|
|
||||||
const go = new Go();
|
const go = new Go();
|
||||||
WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
|
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);
|
return go.run(result.instance);
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
throw err;
|
throw err;
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче