Skip to content

Commit

Permalink
avm1: ExternalInterface properties are read only
Browse files Browse the repository at this point in the history
  • Loading branch information
Herschel committed Sep 4, 2020
1 parent 4de2b7f commit 151b13a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/avm1/globals/external_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ pub fn create_external_interface_object<'gc>(
fn_proto,
),
None,
Attribute::DontDelete | Attribute::DontEnum,
Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
);

object.force_set_function(
"addCallback",
add_callback,
gc_context,
Attribute::DontDelete | Attribute::DontEnum,
Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
Some(fn_proto),
);

object.force_set_function(
"call",
call,
gc_context,
Attribute::DontDelete | Attribute::DontEnum,
Attribute::DontDelete | Attribute::DontEnum | Attribute::ReadOnly,
Some(fn_proto),
);

Expand Down

0 comments on commit 151b13a

Please sign in to comment.