babel / babylon

PSA: moved into babel/babel as @babel/parser -->

Home Page:https://github.com/babel/babel/tree/master/packages/babel-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.