LibJS: Actually mark uncacheable dictionary shapes as uncacheable

This commit is contained in:
Luke Wilde 2025-09-07 15:21:14 +01:00 committed by Alexander Kalenik
parent ba78e3d4be
commit a21d247b0e

View File

@ -40,7 +40,7 @@ GC::Ref<Shape> Shape::create_uncacheable_dictionary_transition()
{
auto new_shape = heap().allocate<Shape>(m_realm);
new_shape->m_dictionary = true;
new_shape->m_cacheable = true;
new_shape->m_cacheable = false;
new_shape->m_prototype = m_prototype;
invalidate_prototype_if_needed_for_new_prototype(new_shape);
ensure_property_table();