make it illegal to use destructuring outside of an ExpressionStatement

This commit is contained in:
Sebastian McKenzie
2014-11-14 00:53:10 +11:00
parent d5f47f4f4d
commit 2b458ec2d4
3 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
for (foo.bar of test) {
}

View File

@@ -0,0 +1,3 @@
{
"throws": "Unknown node type MemberExpression in ForOfStatement"
}