1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibJS/JIT: Handle exceptions in LessThan :^)

This commit is contained in:
Andreas Kling 2023-10-17 18:41:45 +02:00
parent 9dd5be0186
commit ed0d2bce83

View file

@ -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)