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.
Prior to 7.3, there used to be a menu at Tools->Options->Miscellaneous->JavaScript, which allowed you to select the JS language version for syntax checking. This is now missing and I have not found it anywhere else. I'm trying to edit a Mozilla extension, written in JavaScript 1.8.5, but all of the newer language elements are detected as syntax errors, effectively making NetBeans unusable for my purpose. Related Issues: #226206 #202928
We had to change in NB 7.3 the parser from Rhino to Nashorn. Nashorn parser is more strict and don't support Mozilla extensions so far. I can fix it only with an ugly hack.
I'm not going to solve it in this release.
Are we ever going to fix this? I guess you can close this, Petr.
New option is created for a project. The option allow choose between EcmaScript 5.1 and EcmaScript 6.0.