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.
Adding the debugger keyword into a javascript file, causes the editor to display a warning icon. Tooltip says "Illegal usage of future keyword debugger; interpreting it as ordinary identifier. Code has no side effects". Please remove the warning from appearing. The debugger keyword does work in debugging as expected so the warning is incorrect and distracting. Thanks.
*** Issue 137039 has been marked as a duplicate of this issue. ***
"debugger" is listed in the JavaScript spec (Ecmascript 262) as a future reserved keyword. Do you know which version of JavaScript it was promoted from a reserved word to a keyword? Then I can enable this hint conditionally based on which version of the JavaScript language you've chosen in the options dialog.
I went ahead and fixed this. The IDE will no longer warn about the debugger keyword. Hopefully nobody is trying to use it like an identifier/variable. Changeset: 538ab1fcdbdd
Verified fixed in NetBeans IDE Dev (Build 20080619170241) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86 We'll make a note about "debugger" usage in our guide. Thanks!!