Instances should be listed as their prototypes (empty as they are)

This commit is contained in:
David Wendt 2020-07-08 22:31:00 -04:00
parent c917b3d411
commit 39a4566f20
1 changed files with 11 additions and 1 deletions

View File

@ -208,7 +208,17 @@ impl<'gc> FunctionObject<'gc> {
return Err(format!("Could not resolve interface {:?}", interface_name).into()); return Err(format!("Could not resolve interface {:?}", interface_name).into());
} }
interfaces.push(interface.unwrap().as_object()?); let mut interface = interface.unwrap().as_object()?;
let iface_proto = interface
.get_property(
interface,
&QName::new(Namespace::public_namespace(), "prototype"),
activation,
context,
)?
.as_object()?;
interfaces.push(iface_proto);
} }
if !interfaces.is_empty() { if !interfaces.is_empty() {