File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/clojure/cljs/repl Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 121
121
'(do
122
122
(.require js/goog " cljs.core" )
123
123
(set! *print-newline* false )
124
- (set! *print-fn* js/print)))
124
+ (set! *print-fn* js/print)
125
+ (set! *print-err-fn* js/print)))
125
126
; ; monkey-patch goog.isProvided_ to suppress useless errors
126
127
(repl/evaluate-form this env repl-filename
127
128
'(set! js/goog.isProvided_ (fn [ns ] false )))
Original file line number Diff line number Diff line change 124
124
(Context/javaToJS opts scope))
125
125
(ScriptableObject/putProperty scope
126
126
" out" (Context/javaToJS *out* scope))
127
+ (ScriptableObject/putProperty scope
128
+ " err" (Context/javaToJS *err* scope))
127
129
128
130
; ; define file loading, load goog.base, load repl deps
129
131
(rhino-eval repl-env " bootjs" 1 bootjs)
135
137
(repl/evaluate-form repl-env env " <cljs repl>"
136
138
'(do
137
139
(.require js/goog " cljs.core" )
138
- (set! *print-fn* (fn [x] (.write js/out x)))))
140
+ (set! *print-fn* (fn [x] (.write js/out x)))
141
+ (set! *print-err-fn* (fn [x] (.write js/err x)))))
139
142
140
143
; ; allow namespace reloading
141
144
(repl/evaluate-form repl-env env " <cljs repl>"
You can’t perform that action at this time.
0 commit comments