« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit/data/composite
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/data/composite')
-rw-r--r--test/unit/data/composite/data/withPropertyFromObject.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/data/composite/data/withPropertyFromObject.js b/test/unit/data/composite/data/withPropertyFromObject.js
index 912c924c..068932e2 100644
--- a/test/unit/data/composite/data/withPropertyFromObject.js
+++ b/test/unit/data/composite/data/withPropertyFromObject.js
@@ -61,7 +61,7 @@ t.test(`withPropertyFromObject: "internal" input`, t => {
     ],
   });
 
-  const thing = new (class extends CacheableObject {
+  const constructor = class extends CacheableObject {
     static [CacheableObject.propertyDescriptors] = {
       foo: {
         flags: {update: true, expose: false},
@@ -78,7 +78,11 @@ t.test(`withPropertyFromObject: "internal" input`, t => {
         },
       },
     };
-  });
+  };
+
+  constructor.finalizeCacheableObjectPrototype();
+
+  const thing = Reflect.construct(constructor, []);
 
   thing.foo = 100;
   thing.bar = 200;