From 012fe56cb483bd3b87354ecb48c433757a636cb7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 4 Mar 2024 18:13:11 -0400 Subject: 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. --- src/data/things/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/data/things/index.js') 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) { -- cgit 1.3.0-6-gf8a5