archives

« Bugzilla Issues Index

#4098 — Elison not allowed in ArrayBindingPattern and ArrayAssignmentPattern after RestElement


This will complicate recursive descendant parsing because ArrayBindingPattern and ArrayAssignmentPattern cannot be directly converted from an ArrayLiteral.


Yes, a trailing comma or elision is intentionally not allowed there.

that's not the only difference between between the array pattern grammars and ArrayLiteral and the reason for the first early error condition in 12.14.1

ArrayLiteral just a cover grammar for ArrayAssignmentPattern