diff --git a/src/clj/cljs/repl.clj b/src/clj/cljs/repl.clj index b081472b97..323db92c83 100644 --- a/src/clj/cljs/repl.clj +++ b/src/clj/cljs/repl.clj @@ -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*)