« get me outta code hell

data: CacheableObject: fix hasPropertyDescriptor - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
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
commitf2b4a2df290394af1c079aab2f818aa34edcfe7d (patch)
tree4ee20fa4b1ea53e4e817ee7ba17771aeb7c46a7e /src/data
parent73c59a414c27c4b50647639f3459cd97ee8b9170 (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
Diffstat (limited to 'src/data')
-rw-r--r--src/data/cacheable-object.js2
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) {