Skip to content

Commit b38ded9

Browse files
committed
do not remove .call for ^js inferred fns
1 parent 3f5a60a commit b38ded9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/clojure/cljs/compiler.cljc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,7 @@
11431143
(boolean ('#{string array} first-arg-tag)))
11441144
ns (:ns info)
11451145
ftag (ana/infer-tag env f)
1146-
js? (or (= ns 'js) (= ns 'Math)
1147-
(ana/js-tag? ftag) (:foreign info)) ;; foreign - i.e. global / Node.js library
1146+
js? (or (= ns 'js) (= ns 'Math) (:foreign info)) ;; foreign - i.e. global / Node.js library
11481147
goog? (when ns
11491148
(or (= ns 'goog)
11501149
(when-let [ns-str (str ns)]

0 commit comments

Comments
 (0)