mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +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
Notes:
sideshowbarker
2024-07-17 03:47:05 +09:00
Author: https://github.com/Hendiadyoin1
Commit: b86f1c2fe7
Pull-request: https://github.com/SerenityOS/serenity/pull/15971
Reviewed-by: https://github.com/FireFox317
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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