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.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function* When using function* the editor validates it as invalid syntax, and autoformat tries to reformat the code. According the to docs, this is valid syntax: function* foo(){ var index = 0; while (index <= 2) // when index reaches 3, // yield's done will be true // and its value will be undefined; yield index++; }
Thank you for reporting. Generators are part of ES6 *** This bug has been marked as a duplicate of bug 242387 ***