« get me outta code hell

cacheable-object: remove 900,000 functions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/find.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-12 18:56:56 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-13 16:43:08 -0400
commiteb12a115268671ad324aa437d91c170e5843f4bb (patch)
treef3f103e90362f4b5b8c01f15e1b66ad8275cee5a /src/find.js
parent8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff)
cacheable-object: remove 900,000 functions
Diffstat (limited to 'src/find.js')
-rw-r--r--src/find.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/find.js b/src/find.js
index c7813e32..e590bc4f 100644
--- a/src/find.js
+++ b/src/find.js
@@ -34,7 +34,7 @@ export function processAvailableMatchesByName(data, {
   include = _thing => true,
 
   getMatchableNames = thing =>
-    (Object.hasOwn(thing, 'name')
+    (thing.constructor.hasPropertyDescriptor('name')
       ? [thing.name]
       : []),
 
@@ -72,7 +72,7 @@ export function processAvailableMatchesByDirectory(data, {
   include = _thing => true,
 
   getMatchableDirectories = thing =>
-    (Object.hasOwn(thing, 'directory')
+    (thing.constructor.hasPropertyDescriptor('directory')
       ? [thing.directory]
       : [null]),