From f2b4a2df290394af1c079aab2f818aa34edcfe7d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 20 Nov 2025 11:54:12 -0400 Subject: 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 --- src/data/cacheable-object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit 1.3.0-6-gf8a5