Commit adb52cff authored by Richard Musiol's avatar Richard Musiol Committed by Brad Fitzpatrick

misc/wasm: wasm_exec: non-zero exit code on compile error

Return a non-zero exit code if the WebAssembly host fails to compile
the WebAssmbly bytecode to machine code.

Change-Id: I774309db2872b6a2de77a1b0392608058414160d
Reviewed-on: https://go-review.googlesource.com/110097Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent aaf73c6d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment