avm2: Fix defining const slots on global object

This commit is contained in:
Lord-McSweeney 2023-10-19 21:10:56 -07:00 committed by Lord-McSweeney
parent 18c53694cb
commit 901d84b2cf
2 changed files with 1 additions and 2 deletions

View File

@ -559,7 +559,7 @@ impl<'gc> VTable<'gc> {
let new_slot_id = write.default_slots.len() as u32 - 1; let new_slot_id = write.default_slots.len() as u32 - 1;
write write
.resolved_traits .resolved_traits
.insert(name, Property::new_slot(new_slot_id)); .insert(name, Property::new_const_slot(new_slot_id));
write write
.slot_classes .slot_classes
.push(PropertyClass::Class(class.inner_class_definition())); .push(PropertyClass::Class(class.inner_class_definition()));

View File

@ -1,2 +1 @@
num_ticks = 1 num_ticks = 1
known_failure = true