Skip to content

ES6 feature: computed property name #1037

@ikarienator

Description

@ikarienator

Syntax:

ComputedPropertyName[Yield] :
    [ AssignmentExpression[In, ?Yield] ]

Referred to by:

PropertyName[Yield,GeneratorParameter] :
    LiteralPropertyName
    [+GeneratorParameter] ComputedPropertyName
    [~GeneratorParameter] ComputedPropertyName[?Yield]

Early errors:

None.

Spec:

12.2.5 Object Initializer

See also

Esprima issue on Google Code
V8 support for computed property names
Error messages in V8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions