Bug 238121 - Highlight NaN, Infinity and undefined
Highlight NaN, Infinity and undefined
Status: NEW
Product: javascript
Classification: Unclassified
Component: Editor
7.4
PC Linux
: P3 with 2 votes (vote)
: TBD
Assigned To: Reema
issues@javascript
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-08 04:20 UTC by peterkehl
Modified: 2017-04-19 10:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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 https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.5: 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