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:
parent
a00c421d61
commit
b86f1c2fe7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue