Object pattern inside array rest element
nicolo-ribaudo opened this issue · comments
Input Code
var [ ...{length} ] = foo;
[ ...{length} ] = foo;
Babylon/Babel Configuration
{}
Expected Behavior
Both the lines are valid, so babylon should parse them without errors
Current Behavior
The {
in the second line is reported as unexpected.
Your Environment
software | version |
---|---|
Babylon | 7.0.0-beta.19 |
This issue has been moved to babel/babel#6682.