Skip to content

Commit

Permalink
CLJS-482: bind *out* as the target of Rhino REPL env printing
Browse files Browse the repository at this point in the history
  • Loading branch information
cemerick authored and swannodette committed Mar 15, 2013
1 parent 1ad0b8d commit ab6325d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/cljs/repl/rhino.clj
Expand Up @@ -102,11 +102,11 @@
'(ns cljs.user))
(ScriptableObject/putProperty scope
"out"
(Context/javaToJS System/out scope))
(Context/javaToJS *out* scope))
(repl/evaluate-form repl-env
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]
repl/IJavaScriptEnv
Expand Down

0 comments on commit ab6325d

Please sign in to comment.