1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibJS/JIT: Call throw_if_needed_for_call() in cxx_call()

This allows test-js to run to completion (although we do still have
some bugs to track down.)
This commit is contained in:
Andreas Kling 2023-10-26 15:13:26 +02:00
parent bcf7cdb679
commit bfb527e614

View file

@ -751,8 +751,8 @@ void Compiler::compile_put_by_value(Bytecode::Op::PutByValue const& op)
static Value cxx_call(VM& vm, Value callee, u32 first_argument_index, u32 argument_count, Value this_value, Bytecode::Op::CallType call_type)
{
// FIXME: Uncomment this and deal with it.
// TRY_OR_SET_EXCEPTION(throw_if_needed_for_call(vm.bytecode_interpreter(), *this, callee));
// FIXME: Get the expression_string() here as well.
TRY_OR_SET_EXCEPTION(throw_if_needed_for_call(vm.bytecode_interpreter(), callee, call_type, {}));
MarkedVector<Value> argument_values(vm.heap());
argument_values.ensure_capacity(argument_count);