On Jan 3, 2012, at 4:42 PM, Brendan Eich wrote: > On Jan 3, 2012, at 4:38 PM, Allen Wirfs-Brock wrote: > >>> ArrayBindingPattern : >>> [ Elision<opt> BindingRestElement<opt> ] >>> [ BindingElementList , Elision<opt> BindingRestElement<opt> ] >> >> It's a grammar bug. Thanks for the proof reading... > > The final <opt> cited above is the bug, right? > > The first right-hand side still is enough to produce the [x] pattern.
The current spec. draft is missing the second (of three) LHS rules that show up in ES5.1 for ArrayLiteral. It believe the correct form should be: ArrayBindingPattern : [ Elisionopt BindingRestElementopt ] [ BindingElementList ] [ BindingElementList , Elisionopt BindingRestElementopt ] Allen
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss