ES4 draft: Object initializers

Lars Hansen lhansen at
Fri Mar 21 08:19:21 PDT 2008

A bug: repeated fields are also disallowed if the object initializer has
a type annotation.

In summary, only object initializers that look like ES3 initializers are
allowed to have repeated fields (for backward compatibility).


> -----Original Message-----
> From: es4-discuss-bounces at 
> [mailto:es4-discuss-bounces at] On Behalf Of Lars Hansen
> Sent: 20. mars 2008 16:43
> To: es4-discuss at
> Subject: ES4 draft: Object initializers
> I've attempted to sum up everything we have decided about 
> object initializers (aka object literals).  A short draft 
> spec is included.
> Comments welcome from everyone, especially from ES4 WG 
> members who might remember about things I've forgotten, or 
> correct misunderstandings.
> --lars

More information about the Es4-discuss mailing list