mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibJS: Reset scheduled-jump flag when throwing an exception
Otherwise we might attempt to follow the scheduled jump later
This commit is contained in:
parent
f5645e3c9c
commit
4da5b8ec67
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 4da5b8ec67
Pull-request: https://github.com/SerenityOS/serenity/pull/21653
2 changed files with 23 additions and 0 deletions
|
@ -277,6 +277,7 @@ void Interpreter::run_bytecode()
|
|||
|
||||
if (result.is_error()) [[unlikely]] {
|
||||
reg(Register::exception()) = *result.throw_completion().value();
|
||||
m_scheduled_jump = {};
|
||||
auto const* handler = m_current_block->handler();
|
||||
auto const* finalizer = m_current_block->finalizer();
|
||||
if (!handler && !finalizer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue