ES4 stable draft: object initializers

liorean liorean at
Tue Apr 15 17:00:16 PDT 2008

On 16/04/2008, Waldemar Horwat <waldemar at> wrote:
> There is also another ambiguity in the grammar:
>  var {x:y, p:q} = expr;
>  is both an assignment expression statement and a destructuring variable binding statement.

An assignment to an object literal seems like total bogus though - LHS
of an assignment should be a storage location and not an object. So
logically it makes sense only as a destructuring assignment.
David "liorean" Andersson

More information about the Es4-discuss mailing list