File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 187
187
[]
188
188
(set! *print-newline* false )
189
189
(set-print-fn!
190
- (fn [& args]
191
- (.apply (.-log js/console) js/console (into-array args))))
190
+ (fn []
191
+ (let [xs (js-arguments )]
192
+ (.apply (.-log js/console) js/console (garray/clone xs)))))
192
193
(set-print-err-fn!
193
- (fn [& args]
194
- (.apply (.-error js/console) js/console (into-array args))))
194
+ (fn []
195
+ (let [xs (js-arguments )]
196
+ (.apply (.-error js/console) js/console (garray/clone xs)))))
195
197
nil )
196
198
197
199
(def
@@ -11503,11 +11505,15 @@ reduces them without incurring seq initialization"
11503
11505
(let [system (.type js/Java " java.lang.System" )]
11504
11506
(set! *print-newline* false )
11505
11507
(set-print-fn!
11506
- (fn [& args]
11507
- (.println (.-out system) (.join (into-array args) " " ))))
11508
+ (fn []
11509
+ (let [xs (js-arguments )
11510
+ s (.join (garray/clone xs) " " )]
11511
+ (.println (.-out system) s))))
11508
11512
(set-print-err-fn!
11509
- (fn [& args]
11510
- (.println (.-error system) (.join (into-array args) " " )))))))
11513
+ (fn []
11514
+ (let [xs (js-arguments )
11515
+ s (.join (garray/clone xs) " " )]
11516
+ (.println (.-error system) s)))))))
11511
11517
11512
11518
(maybe-enable-print! )
11513
11519
@@ -11517,7 +11523,7 @@ reduces them without incurring seq initialization"
11517
11523
should be evaluated." :dynamic true }
11518
11524
*eval*
11519
11525
(fn [_]
11520
- (throw (ex-info " cljs.core/*eval* not bound" {} ))))
11526
+ (throw (js/Error. " cljs.core/*eval* not bound" ))))
11521
11527
11522
11528
(defn eval
11523
11529
" Evaluates the form data structure (not text!) and returns the result.
You can’t perform that action at this time.
0 commit comments