From ed0d2bce83f38d82b17b378fcc2d056f5fa1c109 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 17 Oct 2023 18:41:45 +0200 Subject: [PATCH] LibJS/JIT: Handle exceptions in LessThan :^) --- Userland/Libraries/LibJS/JIT/Compiler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/JIT/Compiler.cpp b/Userland/Libraries/LibJS/JIT/Compiler.cpp index bb5164b33a..f7c7a16141 100644 --- a/Userland/Libraries/LibJS/JIT/Compiler.cpp +++ b/Userland/Libraries/LibJS/JIT/Compiler.cpp @@ -160,8 +160,7 @@ void Compiler::compile_jump_conditional(Bytecode::Op::JumpConditional const& op) [[maybe_unused]] static Value cxx_less_than(VM& vm, Value lhs, Value rhs) { - // FIXME: Handle exceptions! - return MUST(less_than(vm, lhs, rhs)); + return TRY_OR_SET_EXCEPTION(less_than(vm, lhs, rhs)); } void Compiler::compile_less_than(Bytecode::Op::LessThan const& op)