From 8afe8a5dfad43e3f85a8f40a6c379c784a453ab5 Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Thu, 14 May 2026 15:00:41 +0200 Subject: [PATCH] :bug: Fix plugins schema validation error (#9632) --- frontend/src/app/util/object.cljc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/util/object.cljc b/frontend/src/app/util/object.cljc index bb5ae6c5a4..090effd710 100644 --- a/frontend/src/app/util/object.cljc +++ b/frontend/src/app/util/object.cljc @@ -464,6 +464,13 @@ (let [o (get o type-symbol)] (= o t)))) +#?(:cljs + (def Proxy + (app.util.object/class + :name "Proxy" + :extends js/Object + :constructor (constantly nil)))) + (defmacro reify "A domain specific variation of reify that creates anonymous objects on demand with the ability to assign protocol implementations and @@ -481,7 +488,7 @@ obj-sym (gensym "obj-")] - `(let [~obj-sym (cljs.core/js-obj) + `(let [~obj-sym (new Proxy) ~f-sym (fn [] ~type-name)] (add-properties! ~obj-sym {:name ~'js/Symbol.toStringTag