Bläddra i källkod

LibJS/JIT: Handle exceptions in LessThan :^)

Andreas Kling 1 år sedan
förälder
incheckning
ed0d2bce83
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      Userland/Libraries/LibJS/JIT/Compiler.cpp

+ 1 - 2
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)