IsValidSimpleAssignmentTarget with parenthesized LHS expressions

Kevin Gibbons kevin at
Tue May 9 20:19:12 UTC 2017

Your reading of the spec is correct; `({x}) = 1` is disallowed. And indeed
every major engine disallows it.

Esprima just has a bug. See e.g.

Shift gets this; so do acorn and babylon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list