report runtime process aborts correctly

This commit is contained in:
alexlamsl 2022-01-11 07:11:46 +08:00
parent c7d2837184
commit 412a6b4be7

View File

@ -300,7 +300,7 @@ function run_code_exec(code, toplevel, timeout) {
details = vm.runInNewContext("(" + details + ")");
} catch (e) {}
} else if (!match) {
new Error("Script execution aborted.");
return new Error("Script execution aborted.");
}
if (!match) return details;
var ex = new global[match[1]](match[2]);