mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 06:32:54 +00:00
LibJS: Save scheduled jumps when entering unwind contexts
These are then restored upon `ContinuePendingUnwind`. This stops us from forgetting where we needed to jump when we do extra try-catches in finally blocks. Co-Authored-By: Jesús "gsus" Lapastora <cyber.gsuscode@gmail.com>
This commit is contained in:
parent
4da5b8ec67
commit
1341f4438d
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 1341f4438d
Pull-request: https://github.com/SerenityOS/serenity/pull/21653
4 changed files with 95 additions and 2 deletions
|
@ -32,6 +32,7 @@ struct CallFrame {
|
|||
Vector<Value> registers;
|
||||
Vector<GCPtr<Environment>> saved_lexical_environments;
|
||||
Vector<UnwindInfo> unwind_contexts;
|
||||
Vector<BasicBlock const*> previously_scheduled_jumps;
|
||||
};
|
||||
|
||||
class Interpreter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue