From 9258e253cac35046aef26d8f751c2d2ecf674563 Mon Sep 17 00:00:00 2001 From: Evgeniy Baskov Date: Sat, 28 Oct 2023 23:27:52 +0300 Subject: [PATCH] LibJS/JIT: Fix crash in CallWithArgumentArray --- Userland/Libraries/LibJS/JIT/Compiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibJS/JIT/Compiler.cpp b/Userland/Libraries/LibJS/JIT/Compiler.cpp index 49bfe31107..48da931a2f 100644 --- a/Userland/Libraries/LibJS/JIT/Compiler.cpp +++ b/Userland/Libraries/LibJS/JIT/Compiler.cpp @@ -937,6 +937,9 @@ void Compiler::compile_call_with_argument_array(Bytecode::Op::CallWithArgumentAr m_assembler.mov( Assembler::Operand::Register(ARG3), Assembler::Operand::Imm(to_underlying(op.call_type()))); + m_assembler.mov( + Assembler::Operand::Register(ARG4), + Assembler::Operand::Imm(bit_cast(&op.expression_string()))); native_call((void*)cxx_call_with_argument_array); store_vm_register(Bytecode::Register::accumulator(), RET); check_exception();