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.
The codes below all shows warning of 'the global variable is not declared', var a = String.fromCharCode(100); var b = Number.POSITIVE_INFINITY; var c = Math.abs(-5); Date.prototype.mymethod = function(){}; Object.prototype.mymethod = function(){}; Array.prototype.mymethod = function(){}; I think javascript built in objects shouldn't need to be declared before use, and therefore the warning shall be excluded to these situation. Product Version = NetBeans IDE Dev (Build 201212260001) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.7.0_10 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Created attachment 129711 [details] IDE log
Thanks, I have add the Date to the global object set. Array and Object are already there. Fixed in web-main: http://hg.netbeans.org/web-main/rev/b7688a2b52a0
Integrated into 'main-golden', will be available in build *201301090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b7688a2b52a0 User: Petr Pisl <ppisl@netbeans.org> Log: #224253 - Why javascript built in object need to declare?