We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dfa5ab commit f8b4125Copy full SHA for f8b4125
1 file changed
src/main/clojure/cljs/compiler.cljc
@@ -30,7 +30,7 @@
30
[cljs.analyzer :as ana]
31
[cljs.source-map :as sm]))
32
#?(:clj (:import java.lang.StringBuilder
33
- java.io.File
+ [java.io File Writer]
34
[cljs.tagged_literals JSValue])
35
:cljs (:import [goog.string StringBuffer])))
36
@@ -205,12 +205,11 @@
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 [s (cond-> x
209
- (not (string? x)) print-str)]
+ :else (let [^String s (cond-> x (not (string? x)) print-str)]
210
(when-not (nil? *source-map-data*)
211
(swap! *source-map-data*
212
update-in [:gen-col] #(+ % (count s))))
213
- (print s))))
+ (.write ^Writer *out* s))))
214
nil)
215
216
(defn emitln [& xs]
0 commit comments