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/listing-spec.js | |
parent | 8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff) |
cacheable-object: remove 900,000 functions
Diffstat (limited to 'src/listing-spec.js')
-rw-r--r-- | src/listing-spec.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/listing-spec.js b/src/listing-spec.js index bfea397c..749f009a 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -238,6 +238,27 @@ listingSpec.push({ groupUnderOther: true, }); +// Dunkass mock. Listings should be Things! In the fuuuuture! +class Listing { + static properties = {}; + + constructor() { + Object.assign(this, this.constructor.properties); + } + + static hasPropertyDescriptor(key) { + return Object.hasOwn(this.properties, key); + } +} + +for (const [index, listing] of listingSpec.entries()) { + class ListingSubclass extends Listing { + static properties = listing; + } + + listingSpec.splice(index, 1, new ListingSubclass); +} + { const errors = []; |