`resolve_multiname` should actually return it's prototype's return value.

This commit is contained in:
David Wendt 2020-02-26 21:54:29 -05:00
parent ab5a95c05b
commit 43da7ac952
1 changed files with 1 additions and 2 deletions

View File

@ -97,14 +97,13 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
fn resolve_multiname(self, multiname: &Multiname) -> Option<QName> {
for ns in multiname.namespace_set() {
let qname = QName::new(ns.clone(), multiname.local_name()?);
if self.has_property(&qname) {
return Some(qname);
}
}
if let Some(proto) = self.proto() {
proto.resolve_multiname(multiname);
return proto.resolve_multiname(multiname);
}
None