diff options
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 |
commit | eb12a115268671ad324aa437d91c170e5843f4bb (patch) | |
tree | f3f103e90362f4b5b8c01f15e1b66ad8275cee5a /src/find.js | |
parent | 8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff) |
cacheable-object: remove 900,000 functions
Diffstat (limited to 'src/find.js')
-rw-r--r-- | src/find.js | 4 |
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]), |