esprima icon indicating copy to clipboard operation
esprima copied to clipboard

Doesn't throw on invalid parenthesized pattern (object pattern)

Open ghost opened this issue 8 years ago • 0 comments

Steps to reproduce

esprima.parse('({a: (b = 0)} = {})')

Expected output

Should throw

Actual output

Outputs invalid AST

ghost avatar Nov 23 '17 08:11 ghost