Skip to content

Commit 797823b

Browse files
committed
avoid accessing constructor
1 parent 49a9a0d commit 797823b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,7 +4129,7 @@ reduces them without incurring seq initialization"
41294129
(defn --destructure-map [gmap]
41304130
(if (implements? ISeq gmap)
41314131
(if (next gmap)
4132-
(.createAsIfByAssoc (. {} -constructor) (to-array gmap))
4132+
(.createAsIfByAssoc (if ^boolean LITE_MODE ObjMap PersistentArrayMap) (to-array gmap))
41334133
(if (seq gmap)
41344134
(first gmap)
41354135
{}))
@@ -9040,7 +9040,7 @@ reduces them without incurring seq initialization"
90409040
https://clojure.org/reference/special_forms#keyword-arguments"
90419041
[s]
90429042
(if (next s)
9043-
(.createAsIfByAssoc (. {} -constructor) (to-array s))
9043+
(.createAsIfByAssoc (if ^boolean LITE_MODE ObjMap PersistentArrayMap) (to-array s))
90449044
(if (seq s) (first s) {})))
90459045

90469046
(defn sorted-map

0 commit comments

Comments
 (0)