Bug 397234 - [validation][preferences] Add validator option for reserved identifiers
Summary: [validation][preferences] Add validator option for reserved identifiers
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 05:16 EST by Sebastian Zartner CLA
Modified: 2013-06-19 11:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zartner CLA 2012-12-29 05:16:43 EST
As of http://www.ecma-international.org/ecma-262/5.1/#sec-7.6.1.2 there are several reserved keywords like "extends" and "const".

Some browsers like Firefox and Chrome already support the "const" identifier, though, while others don't.
Note that this keyword currently causes some problems like described in bug 326842 and bug 385274. There can also be found test cases for this.

So there should be an option for such identifiers in Preferences > JavaScript > Validator > Potential programming problems. This option should be set to "Warning" by default.

Sebastian