Skip to content

Commit 776b02b

Browse files
committed
support new compiler option :fn-invoke-direct at the REPL
1 parent 3fe1afa commit 776b02b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/clojure/cljs/repl.cljc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,9 @@
762762
(println (str "WARNING: Unknown option '" unknown-opt "'. Did you mean '" suggested-opt "'?"))))
763763
(let [repl-opts (-repl-options repl-env)
764764
repl-requires (into repl-requires (:repl-requires repl-opts))
765-
{:keys [analyze-path repl-verbose warn-on-undeclared special-fns static-fns] :as opts
765+
{:keys [analyze-path repl-verbose warn-on-undeclared special-fns
766+
static-fns fn-invoke-direct]
767+
:as opts
766768
:or {warn-on-undeclared true}}
767769
(merge
768770
{:cache-analysis true :source-map true :def-emits-var true}
@@ -806,6 +808,7 @@
806808
warn-on-undeclared)))
807809
{:infer-warning false}))
808810
ana/*cljs-static-fns* static-fns
811+
ana/*fn-invoke-direct* (and static-fns fn-invoke-direct)
809812
*repl-opts* opts]
810813
(let [env {:context :expr :locals {}}
811814
special-fns (merge default-special-fns special-fns)

0 commit comments

Comments
 (0)