ECMA-262: ElementList : ... AssignmentExpression? Wtf?

Brendan Eich brendan.eich at
Mon Oct 30 02:53:29 UTC 2017

Expression is .comma expression so can't be used without fatal ambiguity:
is [a,,b] [(a,b)] or [(a), (b)]? It's the latter by using
AssignmentExpression. If it were PrimaryExpression, ever expression using a
binary operator would need to be parenthesized.

Is the "Dragon Book" still in print? Recommended.


On Sun, Oct 29, 2017 at 5:49 AM Uncloud Group <hydroperhh at> wrote:

> The first example was meant to be [ a, b ]. Sorry.
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list