make it illegal to use destructuring outside of an ExpressionStatement
This commit is contained in:
3
test/fixtures/transformation/for-of/illegal-left/actual.js
vendored
Normal file
3
test/fixtures/transformation/for-of/illegal-left/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
for (foo.bar of test) {
|
||||
|
||||
}
|
||||
3
test/fixtures/transformation/for-of/illegal-left/options.json
vendored
Normal file
3
test/fixtures/transformation/for-of/illegal-left/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unknown node type MemberExpression in ForOfStatement"
|
||||
}
|
||||
Reference in New Issue
Block a user