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/things/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/data/things/index.js') diff --git a/src/data/things/index.js b/src/data/things/index.js index f18e283a..9f033c23 100644 --- a/src/data/things/index.js +++ b/src/data/things/index.js @@ -177,6 +177,16 @@ function evaluateSerializeDescriptors() { }); } +function finalizeCacheableObjectPrototypes() { + return descriptorAggregateHelper({ + message: `Errors finalizing Thing class prototypes`, + + op(constructor) { + constructor.finalizeCacheableObjectPrototype(); + }, + }); +} + if (!errorDuplicateClassNames()) process.exit(1); @@ -188,6 +198,9 @@ if (!evaluatePropertyDescriptors()) if (!evaluateSerializeDescriptors()) process.exit(1); +if (!finalizeCacheableObjectPrototypes()) + process.exit(1); + Object.assign(allClasses, {Thing}); export default allClasses; -- cgit 1.3.0-6-gf8a5