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.
https://github.com/jquery/esprima/issues/1164.

Shift gets this; so do acorn and babylon
<https://astexplorer.net/#/gist/e8ff5de6b9c8c56e00b6b654cc84a0f9/7ef6401d8b4ce934da425095c8662637edf6707e>
.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to