mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibJS: Don't attempt to cast property key to number in PutByIdWithThis
Property key for this instruction cannot be a number.
This commit is contained in:
parent
e81833423b
commit
0076ab74b2
Notes:
github-actions[bot]
2025-09-13 18:03:34 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 0076ab74b2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6184
1 changed files with 1 additions and 1 deletions
|
@ -2656,7 +2656,7 @@ ThrowCompletionOr<void> 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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue