diff options
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/index.js | 13 |
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; |