diff --git a/Userland/Libraries/LibJS/Bytecode/BasicBlock.h b/Userland/Libraries/LibJS/Bytecode/BasicBlock.h index 653989de31..dde4c1bed1 100644 --- a/Userland/Libraries/LibJS/Bytecode/BasicBlock.h +++ b/Userland/Libraries/LibJS/Bytecode/BasicBlock.h @@ -19,7 +19,6 @@ struct UnwindInfo { BasicBlock const* finalizer; JS::GCPtr lexical_environment; - JS::GCPtr variable_environment; }; class BasicBlock { diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index 317ebe5bd1..bb9d8bb884 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -221,7 +221,7 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Realm& realm, Execu if (in_frame) push_register_window(in_frame, executable.number_of_registers); else - push_register_window(make(MarkedVector(vm().heap()), MarkedVector>(vm().heap()), MarkedVector>(vm().heap()), Vector {}), executable.number_of_registers); + push_register_window(make(), executable.number_of_registers); for (;;) { Bytecode::InstructionStreamIterator pc(m_current_block->instruction_stream()); @@ -244,7 +244,6 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Realm& realm, Execu break; if (unwind_context.handler) { vm().running_execution_context().lexical_environment = unwind_context.lexical_environment; - vm().running_execution_context().variable_environment = unwind_context.variable_environment; m_current_block = unwind_context.handler; unwind_context.handler = nullptr; @@ -361,8 +360,7 @@ void Interpreter::enter_unwind_context(Optional