avm1: ExternalInterface properties are read only
This commit is contained in:
parent
4de2b7f3a0
commit
151b13a424
|
@ -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),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue