Skip to content

Commit 6531711

Browse files
committed
move :init up in cljs.repl/repl
1 parent 52b4bb7 commit 6531711

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/clj/cljs/repl.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@
718718
(fn []
719719
(binding [*repl-opts* opts]
720720
(try
721+
(init)
721722
(when analyze-path
722723
(analyze-source analyze-path opts))
723724
(evaluate-form repl-env env "<cljs repl>"
@@ -745,10 +746,6 @@
745746
(binding [*in* (if (true? (:source-map-inline opts))
746747
*in*
747748
(reader))]
748-
(try
749-
(init)
750-
(catch Throwable e
751-
(caught e repl-env opts)))
752749
(print "To quit, type:" :cljs/quit)
753750
(prompt)
754751
(flush)

0 commit comments

Comments
 (0)