Opened 12 years ago
Last modified 12 years ago
#10142 confirmed Bug
CKBuilder: Closure Compiler thinks native is a reserved keyword
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description (last modified by )
It it impossible to build CKEditor after this change: a2136ce (native is a reserved keyword). I remember that it happened at least once in the past. We renamed the "native" variable to "nativ".
After a quick research it turned out we may get rid of this issue forever by using this piece of code:
options.setLanguageIn( CompilerOptions.LanguageMode.ECMASCRIPT5 );
native was a future reserved word in ECMAScript v3. Closure Compiler follows ES4, which also lists native as a reserved keyword.
However, I believe it will be quite unsafe to switch CC to ES5 mode at this moment, because this time we may not notice code that will be incompatible with IE7.
Change History (3)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:3 Changed 12 years ago by
Version: | 4.0.2 |
---|
CC, please.