You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Generates "ForInLoop" in ASTfor(variteminitems){}// Generate "EmptyStatement" in ASTfor(varitemofitems){}for(letitemofitems){}for(constitemofitems){}
Affects PMD Version:
6.22.0
Description:
The for-of loop is recognised incorrectly as an "EmptyStatement".
That's an ES6 / ECMAScript 2015 feature.
It seems to be partially supported by Rhino: http://mozilla.github.io/rhino/compat/engines.html
Code Sample demonstrating the issue:
Steps to reproduce:
Running PMD through: Designer
Related issues: #2305 #1235 #699
The text was updated successfully, but these errors were encountered: