diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-11-20 11:54:12 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-11-25 07:06:48 -0400 |
| commit | f2b4a2df290394af1c079aab2f818aa34edcfe7d (patch) | |
| tree | 4ee20fa4b1ea53e4e817ee7ba17771aeb7c46a7e | |
| parent | 73c59a414c27c4b50647639f3459cd97ee8b9170 (diff) | |
data: CacheableObject: fix hasPropertyDescriptor
can detect stuff from non-null-prototype objects now, but this is for checking the presence of (generally static-queried) descriptors, not listing
| -rw-r--r-- | src/data/cacheable-object.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/cacheable-object.js b/src/data/cacheable-object.js index e0703259..3aa3ecf7 100644 --- a/src/data/cacheable-object.js +++ b/src/data/cacheable-object.js @@ -186,7 +186,7 @@ export default class CacheableObject { } static hasPropertyDescriptor(property) { - return Object.hasOwn(this[CacheableObject.propertyDescriptors], property); + return property in this[CacheableObject.propertyDescriptors]; } static cacheAllExposedProperties(obj) { |