js: Exit the program after dumping and/or running bytecode

Otherwise we'd run the same program again in the AST interpreter.
This commit is contained in:
Andreas Kling 2021-06-05 15:52:49 +02:00
parent dc63958478
commit b609fc6d51
Notes: sideshowbarker 2024-07-18 12:42:05 +09:00

View file

@ -505,6 +505,8 @@ static bool parse_and_run(JS::Interpreter& interpreter, const StringView& source
JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object());
bytecode_interpreter.run(*block);
}
return true;
}
if (parser.has_errors()) {