avm2: has_property should do proto.has_property instead of

has_own_property
This commit is contained in:
Tom Schuster 2024-02-04 14:29:16 +01:00
parent 28c380cfac
commit ecda68b81c
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
if self.has_own_property(name) {
true
} else if let Some(proto) = self.proto() {
proto.has_own_property(name)
proto.has_property(name)
} else {
false
}