check LHS of ForIn/ForOfStatement for constants - closes #1630

This commit is contained in:
Sebastian McKenzie
2015-05-28 10:04:32 -04:00
parent d3c643b004
commit d1d95e0e49
5 changed files with 29 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
const MULTIPLIER = 5;
for (MULTIPLIER in arr);

View File

@@ -0,0 +1,3 @@
{
"throws": "\"MULTIPLIER\" is read-only"
}