avm2: Don't scan the prototype for each multiname check.
This commit is contained in:
parent
6bd3c62195
commit
d83a7c909c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue