diff --git a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp index 49c4314f30..abe7272fd3 100644 --- a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp +++ b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp @@ -2397,7 +2397,7 @@ Bytecode::CodeGenerationErrorOr TryStatement::generate_bytecode(Bytecode:: auto& target_block = generator.make_block(); generator.switch_to_basic_block(saved_block); - generator.emit(Bytecode::Label { target_block }, handler_target, finalizer_target); + generator.emit(Bytecode::Label { target_block }); generator.start_boundary(Bytecode::Generator::BlockBoundaryType::Unwind); if (m_finalizer) generator.start_boundary(Bytecode::Generator::BlockBoundaryType::ReturnToFinally); diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index fe762faca9..5e8f1924df 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -1572,9 +1572,7 @@ DeprecatedString ThrowIfNullish::to_deprecated_string_impl(Bytecode::Executable DeprecatedString EnterUnwindContext::to_deprecated_string_impl(Bytecode::Executable const&) const { - auto handler_string = m_handler_target.has_value() ? DeprecatedString::formatted("{}", *m_handler_target) : ""; - auto finalizer_string = m_finalizer_target.has_value() ? DeprecatedString::formatted("{}", *m_finalizer_target) : ""; - return DeprecatedString::formatted("EnterUnwindContext handler:{} finalizer:{} entry:{}", handler_string, finalizer_string, m_entry_point); + return DeprecatedString::formatted("EnterUnwindContext entry:{}", m_entry_point); } DeprecatedString ScheduleJump::to_deprecated_string_impl(Bytecode::Executable const&) const diff --git a/Userland/Libraries/LibJS/Bytecode/Op.h b/Userland/Libraries/LibJS/Bytecode/Op.h index 1bbc39fb7d..26cac4d460 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.h +++ b/Userland/Libraries/LibJS/Bytecode/Op.h @@ -1192,11 +1192,9 @@ class EnterUnwindContext final : public Instruction { public: constexpr static bool IsTerminator = true; - EnterUnwindContext(Label entry_point, Optional