Skip to content

Commit 004107a

Browse files
author
dnolen
committed
fix :fn-invoke-direct edgecase around keywords
1 parent 5c227e8 commit 004107a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/clojure/cljs/compiler.cljc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,9 @@
974974
(= (get (string/split ns-str #"\.") 0 nil) "goog"))
975975
(not (contains? (::ana/namespaces @env/*compiler*) ns))))
976976

977-
keyword? (and (= (-> f :op) :constant)
978-
(keyword? (-> f :form)))
977+
keyword? (or (= 'cljs.core/Keyword (ana/infer-tag env f))
978+
(and (= (-> f :op) :constant)
979+
(keyword? (-> f :form))))
979980
[f variadic-invoke]
980981
(if fn?
981982
(let [arity (count args)

0 commit comments

Comments
 (0)