diff options
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 |
commit | 5c15f47df44cd060d48eb3e7e0f7b0a2918922e9 (patch) | |
tree | 3b064baba6e30c97be70883e1d55081ec97d6baf | |
parent | 9466ed326cf6d36cbfa411ea5b8ef690c63b0c9c (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.
-rw-r--r-- | src/data/things/index.js | 5 |
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) { |