Please file a bug, ASAP. Thanks,
/be
Michael Ficarra wrote:
Is there any reason why a trailing comma is not allowed in an
ArrayBindingPattern when it has a BindingRestElement? I noticed
yesterday that my parser was erroneously allowing these, but the
inconsistency with both ArrayLiterals and ObjectBindingPatterns is
bothering me. Is this simply a mistake in the grammar? I understand
that we wouldn't want to allow holes or other BindingElements to
follow the BindingRestElement, but I don't see a problem with a single
trailing comma.
Michael Ficarra
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss