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?