avm2: Declare 'dataFormat' property on URLLoader

This ensures that a sealed subclass can still access it.
This commit is contained in:
Aaron Hill 2022-06-27 17:49:55 -05:00 committed by relrelb
parent 2fce315938
commit 1c5312d6c8
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
];
write.define_public_builtin_instance_properties(mc, PUBLIC_INSTANCE_PROPERTIES);
const PUBLIC_INSTANCE_SLOTS: &[(&str, &str, &str)] = &[("data", "", "Object")];
const PUBLIC_INSTANCE_SLOTS: &[(&str, &str, &str)] =
&[("data", "", "Object"), ("dataFormat", "", "String")];
write.define_public_slot_instance_traits(PUBLIC_INSTANCE_SLOTS);
const PUBLIC_INSTANCE_METHODS: &[(&str, NativeMethodImpl)] = &[("load", load)];