File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 181
181
" synchronized" " this" " throw" " throws"
182
182
" transient" " try" " typeof" " var" " void"
183
183
" volatile" " while" " with" " yield" " methods"
184
- " null" " constructor" })
184
+ " null" " constructor"
185
+ " com" ; ; for Rhino
186
+ })
185
187
186
188
(def es5-allowed
187
189
#{" default" })
2600
2602
(let [segments (string/split (clojure.core/name name) #"\. " )]
2601
2603
(when (= 1 (count segments))
2602
2604
(warning :single-segment-namespace env {:name name}))
2603
- (when (some? (some js-reserved segments))
2604
- (warning :munged-namespace env {:name name}))
2605
+ (let [segment (some js-reserved segments)]
2606
+ ; ; don't complain about "com", for Rhino
2607
+ (when (and (some? segment) (not= " com" segment))
2608
+ (warning :munged-namespace env {:name name})))
2605
2609
(find-def-clash env name segments)
2606
2610
#?(:clj
2607
2611
(when (some (complement util/valid-js-id-start?) segments)
2613
2617
mdocstr (-> name meta :doc )
2614
2618
args (if (some? docstring) (next args) args)
2615
2619
metadata (when (map? (first args)) (first args))
2616
- form-meta (meta form)
2617
2620
args (desugar-ns-specs
2618
2621
#?(:clj (rewrite-cljs-aliases
2619
2622
(if metadata (next args) args))
You can’t perform that action at this time.
0 commit comments