We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7c37b commit 1a537e5Copy full SHA for 1a537e5
src/main/clojure/cljs/analyzer.cljc
@@ -1073,7 +1073,8 @@
1073
[env sym full-ns current-ns]
1074
{:name (symbol (str current-ns) (str (munge-node-lib full-ns) "." (name sym)))
1075
:op :js-var
1076
- :ns current-ns})
+ :ns current-ns
1077
+ :tag 'js})
1078
1079
(defmethod resolve* :global
1080
src/main/clojure/cljs/compiler.cljc
@@ -1142,7 +1142,7 @@
1142
opt-count? (and (= (:name info) 'cljs.core/count)
1143
(boolean ('#{string array} first-arg-tag)))
1144
ns (:ns info)
1145
- js? (or (= ns 'js) (= ns 'Math))
+ js? (or (= ns 'js) (= ns 'Math) (= tag 'js))
1146
goog? (when ns
1147
(or (= ns 'goog)
1148
(when-let [ns-str (str ns)]
0 commit comments