diff --git a/test/sandbox.js b/test/sandbox.js index f4a19bb6..25e69e11 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -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]);