Trailing commas are fine (but not after the rest element): [ BindingElementList[?Yield, ?GeneratorParameter] , Elisionopt BindingRestElement[?Yield, ?GeneratorParameter]opt]
The BindingRestElement is optional in the above production, allowing Elision to be the final non-terminal (before the closing bracket). On Sat, Feb 28, 2015 at 12:25 PM, Caitlin Potter <[email protected]> wrote: > Reading the spec today while working on a fix > https://github.com/jshint/jshint/commit/7a2b713e9e874910890339660d4f00d16966e99d, > it looks to me like trailing commas are not allowed __at all__ in > ArrayBindingPattern, whether there is a rest element or not. > > Is this intentional? > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

