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.
if (0 => 1) { } reports no error. According to http://www.w3schools.com/js/js_comparisons.asp greater than or equal operator should be >= and not =>. Has worked in older versions of Netbeans Product Version: NetBeans IDE 8.0 Beta (Build 201401141042) Java: 1.7.0_01; Java HotSpot(TM) 64-Bit Server VM 21.1-b02 Runtime: Java(TM) SE Runtime Environment 1.7.0_01-b08 System: Windows 7 version 6.1
This is problem of the parser in nashorn. We need to update the nashorn, when it will be fixed. I will keep this open as task.
is this known bug in nashorn or should we report it there?
You can report it against the Nashorn as well if you want. The guys from Nashorn just confirm me, that this is still unresolved bug. So if there will have a report from external user, it will be useful.