« get me outta code hell

data: very roughly respect pre-existing property descriptors - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-04 18:13:11 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-04-24 11:55:20 -0300
commit012fe56cb483bd3b87354ecb48c433757a636cb7 (patch)
treea6b6df692814296264b78b01ea185aec04c964d1 /src
parentf235520de72c44a78066247e548145cf53713792 (diff)
data: very roughly respect pre-existing property descriptors
This is some nonsense. Should be better integrated later on so as
to support general implicit property descriptor inheritance, but
this allows for Thing itself to describe properties that every
Thing instance should have, at least.
Diffstat (limited to 'src')
-rw-r--r--src/data/things/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data/things/index.js b/src/data/things/index.js
index 01a8198b..4f87f492 100644
--- a/src/data/things/index.js
+++ b/src/data/things/index.js
@@ -142,7 +142,10 @@ function evaluatePropertyDescriptors() {
         }
       }
 
-      constructor[CacheableObject.propertyDescriptors] = results;
+      constructor[CacheableObject.propertyDescriptors] = {
+        ...constructor[CacheableObject.propertyDescriptors] ?? {},
+        ...results,
+      };
     },
 
     showFailedClasses(failedClasses) {