« get me outta code hell

cacheable-object: remove 900,000 functions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/index.js
diff options
context:
space:
mode:
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
commiteb12a115268671ad324aa437d91c170e5843f4bb (patch)
treef3f103e90362f4b5b8c01f15e1b66ad8275cee5a /src/data/things/index.js
parent8e5e35be0411246cbbc2b2bdc4a93ca6b36b1337 (diff)
cacheable-object: remove 900,000 functions
Diffstat (limited to 'src/data/things/index.js')
-rw-r--r--src/data/things/index.js13
1 files changed, 13 insertions, 0 deletions
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;