check LHS of ForIn/ForOfStatement for constants - closes #1630
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
for (MULTIPLIER in arr);
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "\"MULTIPLIER\" is read-only"
|
||||
}
|
||||
Reference in New Issue
Block a user