This is an extension that node supports:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
Comments
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.
16-04-2014
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.
04-04-2014
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?