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
Notes: sideshowbarker 2024-07-18 12:29:05 +09:00

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);
}