google / google/closure-compiler
Name clash with CSS extern
Open
bug
Externs
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
We were trying to make a "Rect" class, but Rect is defined in the css externs file:
```
ERROR - Variable Rect first declared in externs.zip//browser/w3c_css.js
```
However, Rect is not available in JS (at least not in Chrome). So this basically means that Closure is banning `Rect` from ever being used. Shouldn't the externs that aren't actually available as JS objects be obfuscated in some way so that they are less likely to clash with client code? E.g. W3c_Css_Rect or something like that?
Not sure if this is a problem or if we just don't understand how this is supposed to work.
Contributor guide
Assessment
This issue has not been assessed yet.