Skip to content

Commit

Permalink
need to bind cljs.analyzer/*unchecked-if* in the REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed May 29, 2016
1 parent 8477f19 commit b2e3a46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/clojure/cljs/repl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@
(env/with-compiler-env (or compiler-env (env/default-compiler-env opts))
(when (:source-map opts)
(.start (Thread. (bound-fn [] (read-source-map "cljs/core.aot.js")))))
(binding [*err* (if bind-err
(binding [ana/*unchecked-if* false
*err* (if bind-err
(cond-> *out*
(not (instance? PrintWriter *out*)) (PrintWriter.))
*err*)
Expand Down

0 comments on commit b2e3a46

Please sign in to comment.