We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b2107 commit f2cb378Copy full SHA for f2cb378
src/main/clojure/cljs/core.cljc
@@ -973,7 +973,7 @@
973
(if (core/symbol? x)
974
(core/let [x (core/cond-> (:name (cljs.analyzer/resolve-var &env x))
975
(= "js" (namespace x)) name)
976
- segs (string/split (core/str (string/replace (core/str x) "/" ".")) #"\.")
+ segs (string/split (core/str (string/replace-first (core/str x) "/" ".")) #"\.")
977
n (count segs)
978
syms (map
979
#(vary-meta (symbol "js" (string/join "." %))
src/test/cljs/cljs/core_test.cljs
@@ -1878,3 +1878,8 @@
1878
(deftest test-cljs-3333
1879
(defonce not-native 17) ;; Intentionally matching a core name
1880
(is (== 17 not-native)))
1881
+
1882
+(deftest test-cljs-3334
1883
+ (is (exists? /))
1884
+ (is (exists? cljs.core//))
1885
+ (is (not (exists? cljs.core-test//))))
0 commit comments