Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ab6325dc1619e1629d51a0f0a8bcb42dd380a39e 1 parent 1ad0b8d
@cemerick cemerick authored swannodette committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clj/cljs/repl/rhino.clj
View
4 src/clj/cljs/repl/rhino.clj
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.