avm1: Add attributes for _global/_root/_parent
This commit is contained in:
parent
11f2b46b6a
commit
f2422a2c9f
|
@ -115,7 +115,7 @@ pub fn create_proto<'gc>(
|
||||||
"_global",
|
"_global",
|
||||||
Executable::Native(|avm, context, _this, _args| Ok(avm.global_object(context).into())),
|
Executable::Native(|avm, context, _this, _args| Ok(avm.global_object(context).into())),
|
||||||
Some(Executable::Native(overwrite_global)),
|
Some(Executable::Native(overwrite_global)),
|
||||||
EnumSet::new(),
|
DontDelete | ReadOnly | DontEnum,
|
||||||
);
|
);
|
||||||
|
|
||||||
object.add_property(
|
object.add_property(
|
||||||
|
@ -123,7 +123,7 @@ pub fn create_proto<'gc>(
|
||||||
"_root",
|
"_root",
|
||||||
Executable::Native(|avm, context, _this, _args| Ok(avm.root_object(context).into())),
|
Executable::Native(|avm, context, _this, _args| Ok(avm.root_object(context).into())),
|
||||||
Some(Executable::Native(overwrite_root)),
|
Some(Executable::Native(overwrite_root)),
|
||||||
EnumSet::new(),
|
DontDelete | ReadOnly | DontEnum,
|
||||||
);
|
);
|
||||||
|
|
||||||
object.add_property(
|
object.add_property(
|
||||||
|
@ -141,7 +141,7 @@ pub fn create_proto<'gc>(
|
||||||
.into())
|
.into())
|
||||||
}),
|
}),
|
||||||
None,
|
None,
|
||||||
EnumSet::new(),
|
DontDelete | ReadOnly | DontEnum,
|
||||||
);
|
);
|
||||||
|
|
||||||
object.into()
|
object.into()
|
||||||
|
|
Loading…
Reference in New Issue