mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
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:
parent
dc63958478
commit
b609fc6d51
1 changed files with 2 additions and 0 deletions
|
@ -505,6 +505,8 @@ static bool parse_and_run(JS::Interpreter& interpreter, const StringView& source
|
||||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object());
|
JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object());
|
||||||
bytecode_interpreter.run(*block);
|
bytecode_interpreter.run(*block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parser.has_errors()) {
|
if (parser.has_errors()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue