Parse right-hand-side of for/of as an assignment expression (#9767)
This commit is contained in:
1
packages/babel-parser/test/fixtures/es2015/for-of/invalid-expr/input.js
vendored
Normal file
1
packages/babel-parser/test/fixtures/es2015/for-of/invalid-expr/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
for (let x of y, z) {}
|
||||
3
packages/babel-parser/test/fixtures/es2015/for-of/invalid-expr/options.json
vendored
Normal file
3
packages/babel-parser/test/fixtures/es2015/for-of/invalid-expr/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected \")\" (1:15)"
|
||||
}
|
||||
Reference in New Issue
Block a user