diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 1595bd2e42e..9515265a237 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -380,7 +380,8 @@ ThrowCompletionOr CopyObjectExcludingProperties::execute_impl(Bytecode::In ThrowCompletionOr ConcatString::execute_impl(Bytecode::Interpreter& interpreter) const { auto& vm = interpreter.vm(); - interpreter.reg(m_lhs) = TRY(add(vm, interpreter.reg(m_lhs), interpreter.accumulator())); + auto string = TRY(interpreter.accumulator().to_primitive_string(vm)); + interpreter.reg(m_lhs) = PrimitiveString::create(vm, interpreter.reg(m_lhs).as_string(), string); return {}; }