File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 53
53
, and \" global\" supported. " }
54
54
*global* " default" )
55
55
56
+ (goog-define
57
+ ^{:doc " Boolean flag for LITE_MODE"
58
+ :jsdoc [" @type {boolean}" ]}
59
+ LITE_MODE false )
60
+
56
61
(def
57
62
^{:dynamic true
58
63
:doc " Var bound to the current namespace. Only used for bootstrapping."
@@ -2262,7 +2267,10 @@ reduces them without incurring seq initialization"
2262
2267
2263
2268
(defn chunked-seq?
2264
2269
" Return true if x satisfies IChunkedSeq."
2265
- [x] (implements? IChunkedSeq x))
2270
+ [x]
2271
+ (if-not ^boolean LITE_MODE
2272
+ (implements? IChunkedSeq x)
2273
+ false ))
2266
2274
2267
2275
; ;;;;;;;;;;;;;;;;;;; js primitives ;;;;;;;;;;;;
2268
2276
(defn js-obj
@@ -12506,7 +12514,7 @@ reduces them without incurring seq initialization"
12506
12514
(-seq [coll]
12507
12515
(when (pos? count)
12508
12516
(let [hashes (.sort (js-keys hashobj))]
12509
- (mapcat #(map vec ( partition 2 (aget hashobj %)))
12517
+ (mapcat #(map ( fn [[k v]] ( MapEntry. k v)) ( partition 2 (unchecked-get hashobj %)))
12510
12518
hashes))))
12511
12519
12512
12520
ICounted
Original file line number Diff line number Diff line change 2519
2519
:cache-analysis-format (:cache-analysis-format opts :transit ))
2520
2520
(update-in [:preamble ] #(into (or % []) [" cljs/imul.js" ])))
2521
2521
2522
+ (:lite-mode opts)
2523
+ (assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))]
2524
+ (:lite-mode opts))
2525
+
2522
2526
(:target opts)
2523
2527
(assoc-in [:closure-defines (str (comp/munge 'cljs.core/*target*))]
2524
2528
(name (:target opts)))
You can’t perform that action at this time.
0 commit comments