1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 10:45:09 +00:00

LibJS: Restore cached current_block on return in Bytecode

Otherwise debug prints will show the wrong block until we preform a jump
This commit is contained in:
Hendiadyoin1 2022-11-08 19:38:57 +01:00 committed by Ali Mohammad Pur
parent a00c421d61
commit b86f1c2fe7

View file

@ -61,7 +61,8 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e
pushed_execution_context = true;
}
m_current_block = entry_point ?: &executable.basic_blocks.first();
TemporaryChange restore_current_block { m_current_block, entry_point ?: &executable.basic_blocks.first() };
if (in_frame)
m_register_windows.append(in_frame);
else