Instances should be listed as their prototypes (empty as they are)
This commit is contained in:
parent
c917b3d411
commit
39a4566f20
|
@ -208,7 +208,17 @@ impl<'gc> FunctionObject<'gc> {
|
|||
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() {
|
||||
|
|
Loading…
Reference in New Issue