Skip to content

Commit 826b379

Browse files
author
dnolen
committed
another micro-opt - just call toString instead of print-str
1 parent d2e4424 commit 826b379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/clojure/cljs/compiler.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@
199199
(emit* ast)))
200200

201201
(defn emits [& xs]
202-
(doseq [x xs]
202+
(doseq [^Object x xs]
203203
(cond
204204
(nil? x) nil
205205
#?(:clj (map? x) :cljs (ana/cljs-map? x)) (emit x)
206206
#?(:clj (seq? x) :cljs (ana/cljs-seq? x)) (apply emits x)
207207
#?(:clj (fn? x) :cljs ^boolean (goog/isFunction x)) (x)
208-
:else (let [^String s (cond-> x (not (string? x)) print-str)]
208+
:else (let [^String s (cond-> x (not (string? x)) .toString)]
209209
(when-not (nil? *source-map-data*)
210210
(swap! *source-map-data*
211211
update-in [:gen-col] #(+ % (count s))))

0 commit comments

Comments
 (0)