Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 238121 - Highlight NaN, Infinity and undefined
Highlight NaN, Infinity and undefined
Status: NEW
Product: javascript
Classification: Unclassified
Component: Editor
PC Linux
: P3 with 2 votes (vote)
Assigned To: Reema
Depends on:
  Show dependency treegraph
Reported: 2013-11-08 04:20 UTC by peterkehl
Modified: 2017-04-19 10:33 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description peterkehl 2013-11-08 04:20:50 UTC
Since ECMAScript 5 (i.e. Firefox 4 and newer), NaN, Infinity and undefined are non-writable global objects. So, effectively they act like keywords or literals (even though they are not).

Please, would you consider highlighting them blue like a keyword, or green like a field, or in some other way distinguishing them from standard variables/symbols.

See The NaN, Infinity, and undefined global objects have been made read only, per the ECMAScript 5 specification.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo