mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +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:
committed by
Ali Mohammad Pur
parent
a00c421d61
commit
b86f1c2fe7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user