Closed mbostock closed 3 years ago
A rest element would crash the parser rather than throwing a SyntaxError as expected:
({...md} = {})
([...md] = {})
In addition, sparse array destructuring would also crash the parser:
([,, ...md] = {})
This fixes the parser and adds tests.
A rest element would crash the parser rather than throwing a SyntaxError as expected:
In addition, sparse array destructuring would also crash the parser:
This fixes the parser and adds tests.