From 0076ab74b26b4294736442d75f2bc77a97f3a854 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 13 Sep 2025 19:21:43 +0200 Subject: [PATCH] LibJS: Don't attempt to cast property key to number in PutByIdWithThis Property key for this instruction cannot be a number. --- Libraries/LibJS/Bytecode/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Bytecode/Interpreter.cpp b/Libraries/LibJS/Bytecode/Interpreter.cpp index 5de8c93fe5e..40347e45ca7 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -2656,7 +2656,7 @@ ThrowCompletionOr PutByIdWithThis::execute_impl(Bytecode::Interpreter& int auto& vm = interpreter.vm(); auto value = interpreter.get(m_src); auto base = interpreter.get(m_base); - PropertyKey name = interpreter.current_executable().get_identifier(m_property); + PropertyKey name { interpreter.current_executable().get_identifier(m_property), PropertyKey::StringMayBeNumber::No }; auto& cache = interpreter.current_executable().property_lookup_caches[m_cache_index]; TRY(put_by_property_key(vm, base, interpreter.get(m_this_value), value, {}, name, m_kind, &cache)); return {};