This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238121

Summary: Highlight NaN, Infinity and undefined
Product: javascript Reporter: peterkehl <peterkehl>
Component: EditorAssignee: Reema
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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.