avm1: ExternalInterface properties are read only

This commit is contained in:
Mike Welsh 2020-09-03 17:29:32 -07:00
parent 4de2b7f3a0
commit 151b13a424
1 changed files with 3 additions and 3 deletions

View File

@ -81,14 +81,14 @@ pub fn create_external_interface_object<'gc>(
fn_proto, fn_proto,
), ),
None, None,
Attribute::DontDelete | Attribute::DontEnum, Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
); );
object.force_set_function( object.force_set_function(
"addCallback", "addCallback",
add_callback, add_callback,
gc_context, gc_context,
Attribute::DontDelete | Attribute::DontEnum, Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
Some(fn_proto), Some(fn_proto),
); );
@ -96,7 +96,7 @@ pub fn create_external_interface_object<'gc>(
"call", "call",
call, call,
gc_context, gc_context,
Attribute::DontDelete | Attribute::DontEnum, Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
Some(fn_proto), Some(fn_proto),
); );