We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e4424 commit 826b379Copy full SHA for 826b379
1 file changed
src/main/clojure/cljs/compiler.cljc
@@ -199,13 +199,13 @@
199
(emit* ast)))
200
201
(defn emits [& xs]
202
- (doseq [x xs]
+ (doseq [^Object x xs]
203
(cond
204
(nil? x) nil
205
#?(:clj (map? x) :cljs (ana/cljs-map? x)) (emit x)
206
#?(:clj (seq? x) :cljs (ana/cljs-seq? x)) (apply emits x)
207
#?(:clj (fn? x) :cljs ^boolean (goog/isFunction x)) (x)
208
- :else (let [^String s (cond-> x (not (string? x)) print-str)]
+ :else (let [^String s (cond-> x (not (string? x)) .toString)]
209
(when-not (nil? *source-map-data*)
210
(swap! *source-map-data*
211
update-in [:gen-col] #(+ % (count s))))
0 commit comments