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/data/thing.js | |
parent | 8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff) |
cacheable-object: remove 900,000 functions
Diffstat (limited to 'src/data/thing.js')
-rw-r--r-- | src/data/thing.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/data/thing.js b/src/data/thing.js index 4c3ba3e4..c51c5fe5 100644 --- a/src/data/thing.js +++ b/src/data/thing.js @@ -28,14 +28,13 @@ export default class Thing extends CacheableObject { // Symbol.for('Thing.isThingConstructor') in constructor static [Symbol.for('Thing.isThingConstructor')] = NaN; - static [CacheableObject.propertyDescriptors] = { + constructor() { + super(); + // To detect: // Object.hasOwn(object, Symbol.for('Thing.isThing')) - [Symbol.for('Thing.isThing')]: { - flags: {expose: true}, - expose: {compute: () => NaN}, - }, - }; + this[Symbol.for('Thing.isThing')] = NaN; + } static [Symbol.for('Thing.selectAll')] = _wikiData => []; |