From eb12a115268671ad324aa437d91c170e5843f4bb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 12 Jan 2025 18:56:56 -0400 Subject: cacheable-object: remove 900,000 functions --- src/data/thing.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/data/thing.js') 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 => []; -- cgit 1.3.0-6-gf8a5