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 137038 - Editor displays warning for keyword "debugger"
Summary: Editor displays warning for keyword "debugger"
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 137039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-11 19:19 UTC by _ krystyna
Modified: 2009-02-27 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-06-11 19:19:17 UTC
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.
Comment 1 Petr Jiricka 2008-06-17 14:05:48 UTC
*** Issue 137039 has been marked as a duplicate of this issue. ***
Comment 2 Torbjorn Norbye 2008-06-18 23:45:28 UTC
"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. 
Comment 3 Torbjorn Norbye 2008-06-19 03:28:30 UTC
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
Comment 4 _ krystyna 2008-06-19 23:09:22 UTC
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!!