Revert "LibJS/JIT: Clear exception before executing finalizer"

This reverts commit 0daebef727.

Finally blocks do not unconditionally swallow pending exceptions.
This resolves #21759 and fixes the 2 remaining failing test-js tests.
This commit is contained in:
Idan Horowitz 2023-11-03 20:44:05 +02:00 committed by Andreas Kling
parent 0391096286
commit aaa81cd3b9
Notes: sideshowbarker 2024-07-17 02:37:08 +09:00

View file

@ -426,7 +426,6 @@ void Compiler::check_exception()
m_assembler.jump(label_for(*handler));
no_exception.link(m_assembler);
} else if (auto const* finalizer = current_block().finalizer(); finalizer) {
store_vm_register(Bytecode::Register::exception(), GPR1);
m_assembler.jump_if(Assembler::Operand::Register(GPR0),
Assembler::Condition::NotEqualTo,
Assembler::Operand::Register(GPR1),