We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb0121 commit 1208fe5Copy full SHA for 1208fe5
1 file changed
src/clj/cljs/repl.clj
@@ -645,7 +645,8 @@
645
646
(defn repl*
647
[repl-env {:keys [init need-prompt prompt flush read eval print caught reader
648
- print-no-newline source-map-inline wrap repl-requires]
+ print-no-newline source-map-inline wrap repl-requires
649
+ compiler-env]
650
:or {init #()
651
need-prompt #(if (readers/indexing-reader? *in*)
652
(== (readers/get-column-number *in*) 1)
@@ -683,8 +684,7 @@
683
684
:reader reader
685
:print-no-newline print-no-newline
686
:source-map-inline source-map-inline})))]
- (env/with-compiler-env
687
- (or (::env/compiler repl-env) (env/default-compiler-env opts))
+ (env/with-compiler-env (or compiler-env (env/default-compiler-env opts))
688
(binding [ana/*cljs-ns* 'cljs.user
689
*cljs-verbose* repl-verbose
690
ana/*cljs-warnings*
0 commit comments