1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibJS: Show the VM's last value after executing bytecode programs

This commit is contained in:
Gunnar Beutner 2021-06-10 21:04:32 +02:00 committed by Andreas Kling
parent 3a8f913eee
commit de6d032273

View file

@ -533,9 +533,9 @@ static bool parse_and_run(JS::Interpreter& interpreter, const StringView& source
if (s_run_bytecode) {
JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object());
bytecode_interpreter.run(unit);
} else {
return true;
}
return true;
} else {
interpreter.run(interpreter.global_object(), *program);
}