On Sun, Jan 18, 2009 at 4:35 PM, Brendan Eich <[email protected]> wrote:
>
> We also allow keywords as property names in JS1.7+ and did for ES4 -- this
> relaxation from current context-free reservation of identifiers has been
> talked about for 3.1 too, and IIRC it was agreed to for Harmony at last
> summer's Oslo meeting.
>
It's in the ES3.1 grammar. In ES3.1, x.if is equivalent to x['if'], and
({if: x}) is equivalent to ({'if': x}).
--
Cheers,
--MarkM
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss