Browse files

CLJS-482: bind *out* as the target of Rhino REPL env printing

  • Loading branch information...
cemerick authored and swannodette committed Mar 5, 2013
1 parent 1ad0b8d commit ab6325dc1619e1629d51a0f0a8bcb42dd380a39e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clj/cljs/repl/rhino.clj
@@ -102,11 +102,11 @@
'(ns cljs.user))
(ScriptableObject/putProperty scope
- (Context/javaToJS System/out scope))
+ (Context/javaToJS *out* scope))
(repl/evaluate-form repl-env
"<cljs repl>"
- '(set! *print-fn* (fn [x] (.print js/out x))))))
+ '(set! *print-fn* (fn [x] (.write js/out x))))))
(defrecord RhinoEnv [loaded-libs]

0 comments on commit ab6325d

Please sign in to comment.