avm2: Don't scan the prototype for each multiname check.

This commit is contained in:
David Wendt 2021-11-20 19:14:24 -05:00 committed by kmeisthax
parent 6bd3c62195
commit d83a7c909c
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
}
} else if let Some(name) = multiname.local_name() {
let qname = QName::new(ns.clone(), name);
if self.has_property(&qname)? {
if self.has_own_property(&qname)? {
return Ok(Some(qname));
}
} else {