Skip to content

Commit 3aa7dce

Browse files
committed
* revert str change
* just avoid call to str altogether
1 parent 7464b4d commit 3aa7dce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,12 +852,12 @@
852852
(core/defmacro str
853853
([] "")
854854
([x]
855-
(if (typed-expr? &env x '#{string number})
855+
(if (typed-expr? &env x '#{string})
856856
x
857857
(string-expr (core/list 'js* "cljs.core.str.cljs$core$IFn$_invoke$arity$1(~{})" x))))
858858
([x & ys]
859859
(core/let [interpolate (core/fn [x]
860-
(if (typed-expr? &env x '#{string number clj-nil})
860+
(if (typed-expr? &env x '#{string clj-nil})
861861
"~{}"
862862
"cljs.core.str.cljs$core$IFn$_invoke$arity$1(~{})"))
863863
strs (core/->> (core/list* x ys)
@@ -3287,9 +3287,9 @@
32873287
argseq#))))
32883288
(if (:macro meta)
32893289
`(throw (js/Error.
3290-
(str "Invalid arity: " (- (alength (js-arguments)) 2))))
3290+
(.join (array "Invalid arity: " (- (alength (js-arguments)) 2)) "")))
32913291
`(throw (js/Error.
3292-
(str "Invalid arity: " (alength (js-arguments))))))))))
3292+
(.join (array "Invalid arity: " (alength (js-arguments))) ""))))))))
32933293
~@(map #(fn-method name %) fdecl)
32943294
;; optimization properties
32953295
(set! (. ~name ~'-cljs$lang$maxFixedArity) ~maxfa)

0 commit comments

Comments
 (0)