mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 11:38:24 -05:00
🔧 Deactivate optimization that is causing errors
This commit is contained in:
parent
2284c18c2b
commit
4149b681bd
1 changed files with 6 additions and 4 deletions
|
@ -120,10 +120,12 @@
|
||||||
"A macro based, optimized variant of `get` that access the property
|
"A macro based, optimized variant of `get` that access the property
|
||||||
directly on CLJS, on CLJ works as get."
|
directly on CLJS, on CLJ works as get."
|
||||||
[obj prop]
|
[obj prop]
|
||||||
(if (:ns &env)
|
;; This throws an exception if obj is nul, that does not occur with CLJ get.
|
||||||
(list (symbol ".") (with-meta obj {:tag 'js}) (symbol (str "-" (c/name prop))))
|
;; This is causing many internal errors in places that obj null does not harm and should not throw.
|
||||||
(list `c/get obj prop)))
|
;; (if (:ns &env)
|
||||||
|
;; (list (symbol ".") (with-meta obj {:tag 'js}) (symbol (str "-" (c/name prop))))
|
||||||
|
(list `c/get obj prop))
|
||||||
|
;;)
|
||||||
|
|
||||||
(def ^:dynamic *assert-context* nil)
|
(def ^:dynamic *assert-context* nil)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue