File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1142
1142
opt-count? (and (= (:name info) 'cljs.core/count)
1143
1143
(boolean ('#{string array} first-arg-tag)))
1144
1144
ns (:ns info)
1145
- js? (or (= ns 'js) (= ns 'Math) (:foreign info)) ; ; foreign - i.e. global / Node.js library
1145
+ 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
1148
goog? (when ns
1147
1149
(or (= ns 'goog)
1148
1150
(when-let [ns-str (str ns )]
1149
1151
(= (get (string/split ns-str #"\. " ) 0 nil ) " goog" ))
1150
1152
(not (contains? (::ana/namespaces @env/*compiler*) ns ))))
1151
1153
1152
- keyword? (or (= 'cljs.core/Keyword ( ana/infer-tag env f) )
1154
+ keyword? (or (= 'cljs.core/Keyword ftag )
1153
1155
(let [f (ana/unwrap-quote f)]
1154
1156
(and (= (-> f :op ) :const )
1155
1157
(keyword? (-> f :form )))))
You can’t perform that action at this time.
0 commit comments