The other constructors: Object.create() and String.fromCharCode()

Brendan Eich brendan at
Sun Jun 5 11:08:00 PDT 2011

On Jun 5, 2011, at 11:00 AM, Peter Michaux wrote:

> (I remember the idea of being able to write "" rather than
> having to write "String['new']" was discussed in the past. I don't
> know if keywords as bare object keys are allowed in ECMAScript but it
> seems to work in Firefox.)

It's in ES5. See 7.6, specifically the IdentifierName production and its uses.


More information about the es-discuss mailing list