« 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-05-01 07:06:05 -0300
commit5c15f47df44cd060d48eb3e7e0f7b0a2918922e9 (patch)
tree3b064baba6e30c97be70883e1d55081ec97d6baf /src
parent9466ed326cf6d36cbfa411ea5b8ef690c63b0c9c (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 01a8198..4f87f49 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) {