Skip to content

Commit 1208fe5

Browse files
committed
CLJS-1149: cljs.repl/repl needs to support :compiler-env option
1 parent ebb0121 commit 1208fe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clj/cljs/repl.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@
645645

646646
(defn repl*
647647
[repl-env {:keys [init need-prompt prompt flush read eval print caught reader
648-
print-no-newline source-map-inline wrap repl-requires]
648+
print-no-newline source-map-inline wrap repl-requires
649+
compiler-env]
649650
:or {init #()
650651
need-prompt #(if (readers/indexing-reader? *in*)
651652
(== (readers/get-column-number *in*) 1)
@@ -683,8 +684,7 @@
683684
:reader reader
684685
:print-no-newline print-no-newline
685686
:source-map-inline source-map-inline})))]
686-
(env/with-compiler-env
687-
(or (::env/compiler repl-env) (env/default-compiler-env opts))
687+
(env/with-compiler-env (or compiler-env (env/default-compiler-env opts))
688688
(binding [ana/*cljs-ns* 'cljs.user
689689
*cljs-verbose* repl-verbose
690690
ana/*cljs-warnings*

0 commit comments

Comments
 (0)