grammar update

Jon Zeppieri jaz at
Sun Mar 30 21:20:27 PDT 2008

On 3/30/08, Jeff Dyer <jodyer at> wrote:
> Hi,
>  I've updated the ES4 grammar files linked from

Thanks, Jeff.

- Allowing splat expressions in array literals is a nice addition, but
restricting them to the end of element lists seems unnecessary.  Is
the purpose uniformity between array literals and array patterns?

- (Not entirely a grammar issue.)  What is the intended effect of:

var o = { get x() { ... } }
delete o.x

Currently the RI allows the deletion.  That seems fine, but the
grammar doesn't permit:

({ const get x() { ... } })

Could FieldKind be allowed before 'get' or 'set' in a LiteralField?


More information about the Es4-discuss mailing list