diff --git a/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp b/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp index cf86913497..f0553cefa7 100644 --- a/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp @@ -160,6 +160,9 @@ void GenerateCFG::perform(PassPipelineExecutable& executable) seen_blocks.clear(); unwind_frames.clear(); + UnwindFrame top_level_frame = {}; + + unwind_frames.append(&top_level_frame); generate_cfg_for_block(executable.executable.basic_blocks.first(), executable);