File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 852
852
(core/defmacro str
853
853
([] " " )
854
854
([x]
855
- (if (typed-expr? &env x '#{string})
855
+ (if (typed-expr? &env x '#{string number })
856
856
x
857
857
(string-expr (core/list 'js* " cljs.core.str.cljs$core$IFn$_invoke$arity$1(~{})" x))))
858
858
([x & ys]
859
859
(core/let [interpolate (core/fn [x]
860
- (if (typed-expr? &env x '#{string clj-nil})
860
+ (if (typed-expr? &env x '#{string number clj-nil})
861
861
" ~{}"
862
862
" cljs.core.str.cljs$core$IFn$_invoke$arity$1(~{})" ))
863
863
strs (core/->> (core/list* x ys)
Original file line number Diff line number Diff line change
1
+ (ns trivial.core2 )
2
+
3
+ (. js/console (-lookup 1 2 ))
Original file line number Diff line number Diff line change 720
720
(build/build (build/inputs (io/file inputs " trivial/core.cljs" )) opts cenv)
721
721
(is (< (.length out-file) 10000 ))))
722
722
723
+ (deftest trivial-output-size-protocol
724
+ (let [out (.getPath (io/file (test/tmp-dir ) " trivial-output-protocol-test-out" ))
725
+ out-file (io/file out " main.js" )
726
+ {:keys [inputs opts]} {:inputs (str (io/file " src" " test" " cljs_build" ))
727
+ :opts {:main 'trivial.core2
728
+ :output-dir out
729
+ :output-to (.getPath out-file)
730
+ :optimizations :advanced }}
731
+ cenv (env/default-compiler-env )]
732
+ (test/delete-out-files out)
733
+ (build/build (build/inputs (io/file inputs " trivial/core2.cljs" )) opts cenv)
734
+ (is (< (.length out-file) 10000 ))))
735
+
723
736
(deftest cljs-3255-nil-inputs-build
724
737
(let [out (.getPath (io/file (test/tmp-dir ) " 3255-test-out" ))
725
738
out-file (io/file out " main.js" )
You can’t perform that action at this time.
0 commit comments