diff --git a/misc/wasm/wasm_exec.js b/misc/wasm/wasm_exec.js index e0d6cb93cc..a929fbcca3 100755 --- a/misc/wasm/wasm_exec.js +++ b/misc/wasm/wasm_exec.js @@ -38,6 +38,7 @@ if (typeof process !== "undefined") { // detect Node.js compileAndRun(fs.readFileSync(process.argv[2])).catch((err) => { console.error(err); + process.exit(1); }); } else { window.global = window;