Skip to content

Commit 9c1230e

Browse files
author
dnolen
committed
cljs.repl/repl:
* need to wrap -setup call in cljs.compiler/with-core-cljs so that bootstrapping evals works
1 parent 868b6d6 commit 9c1230e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/clj/cljs/repl.clj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -701,13 +701,15 @@
701701
is-special-fn? (set (keys special-fns))
702702
request-prompt (Object.)
703703
request-exit (Object.)
704-
opts (try
705-
(if-let [merge-opts (:merge-opts (-setup repl-env opts))]
706-
(merge opts merge-opts)
707-
opts)
708-
(catch Throwable e
709-
(caught e repl-env opts)
710-
opts))
704+
opts (comp/with-core-cljs opts
705+
(fn []
706+
(try
707+
(if-let [merge-opts (:merge-opts (-setup repl-env opts))]
708+
(merge opts merge-opts)
709+
opts)
710+
(catch Throwable e
711+
(caught e repl-env opts)
712+
opts))))
711713
read-eval-print
712714
(fn []
713715
(let [input (binding [*ns* (create-ns ana/*cljs-ns*)

0 commit comments

Comments
 (0)