Closed Bug 905359 Opened 11 years ago Closed 10 years ago

Rest element is not supported in parameter destructuring

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: bbenvie, Assigned: Swatinem)

References

(Blocks 1 open bug)

Details

> function foo([x, ...xs]){}
> Syntax Error: missing variable name

Supporting grammar:

> FormalParameter :
>   BindingElement

> BindingElement :
>   BindingPattern InitialiserOpt

> BindingPattern :
>   ArrayBindingPattern

> ArrayBindingPattern :
>   [ BindingElementList , ElisionOpt BindingRestElementOpt ]

> BindingRestElement :
> ... BindingIdentifier
Blocks: 948489
Depends on: spread-assignment
Assignee: general → nobody
This was part of bug 933276.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → arpad.borsos
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.