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 239881

Summary: javascript's const keyword not recognized as a valid statement
Product: javascript Reporter: rednael
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description rednael 2013-12-30 23:15:32 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 8 version 6.2 running on x86
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

The const keyword of javascript does not seem to be supported by the Editor, as it gives the error "Expected an operand but found const".
Const has been around for quiet some time. Since javascript 1.5.
Please see the javascript reference for more information: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
Comment 1 rednael 2013-12-30 23:15:36 UTC
Created attachment 143527 [details]
IDE log
Comment 2 Vladimir Riha 2014-01-02 07:03:55 UTC

*** This bug has been marked as a duplicate of bug 226477 ***