Skip to content

Commit

Permalink
cljs.repl/repl:
Browse files Browse the repository at this point in the history
    * need to wrap -setup call in cljs.compiler/with-core-cljs so that bootstrapping
       evals works
  • Loading branch information
dnolen committed Mar 18, 2015
1 parent 868b6d6 commit 9c1230e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/clj/cljs/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,15 @@
is-special-fn? (set (keys special-fns))
request-prompt (Object.)
request-exit (Object.)
opts (try
(if-let [merge-opts (:merge-opts (-setup repl-env opts))]
(merge opts merge-opts)
opts)
(catch Throwable e
(caught e repl-env opts)
opts))
opts (comp/with-core-cljs opts
(fn []
(try
(if-let [merge-opts (:merge-opts (-setup repl-env opts))]
(merge opts merge-opts)
opts)
(catch Throwable e
(caught e repl-env opts)
opts))))
read-eval-print
(fn []
(let [input (binding [*ns* (create-ns ana/*cljs-ns*)
Expand Down

0 comments on commit 9c1230e

Please sign in to comment.