Skip to content

Commit abf4e78

Browse files
committed
CLJS-2784: Special handling of com breaks requires
Revert CLJS-2770
1 parent 6048bc9 commit abf4e78

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/clojure/cljs/analyzer.cljc

+2-5
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@
181181
"synchronized" "this" "throw" "throws"
182182
"transient" "try" "typeof" "var" "void"
183183
"volatile" "while" "with" "yield" "methods"
184-
"null" "constructor"
185-
"com" ;; for Rhino
186-
})
184+
"null" "constructor"})
187185

188186
(def es5-allowed
189187
#{"default"})
@@ -2603,8 +2601,7 @@
26032601
(when (= 1 (count segments))
26042602
(warning :single-segment-namespace env {:name name}))
26052603
(let [segment (some js-reserved segments)]
2606-
;; don't complain about "com", for Rhino
2607-
(when (and (some? segment) (not= "com" segment))
2604+
(when (some? segment)
26082605
(warning :munged-namespace env {:name name})))
26092606
(find-def-clash env name segments)
26102607
#?(:clj

0 commit comments

Comments
 (0)