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 241801

Summary: greater than or equal to reports no error
Product: javascript Reporter: IfElseTrue
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: TASK Exception Reporter:

Description IfElseTrue 2014-02-13 08:48:38 UTC
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
Comment 1 Petr Pisl 2014-02-13 16:43:20 UTC
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.
Comment 2 IfElseTrue 2014-02-13 17:23:25 UTC
is this known bug in nashorn or should we report it there?
Comment 3 Petr Pisl 2014-02-14 12:11:30 UTC
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.
Comment 4 Petr Pisl 2014-02-14 12:11:36 UTC
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.