JDK-8019962 : const is not defined
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2013-07-05
  • Updated: 2014-09-02
  • Resolved: 2014-09-02
Related Reports
Duplicate :  
Relates :  
This is an extension that node supports: 

I was afraid enabling the "const" support unconditionally would not be acceptable. Hopefully my patch https://bugs.openjdk.java.net/secure/attachment/19877/const-as-var-option.diff attached to JDK-8027933 will be more appropriate.

We intend to implement const for 8u40. Swallowing is not an option for us, so your patch needs to be NB local. I'll help you out otherwise.

Ability to swallow "const" during parsing is essential for jupiter.cz.oracle.com/wiki/view/Netbeans/NodeJSInTheCloud given the fact that the whole support consists of two-line diff, I'd like to get this in. Can anyone help me polish my patch so it is acceptable for production quality code?