Skip to content

"non-string literal property keys not supported" #380

@redchair123

Description

@redchair123
var x = {
    1234:"a",
    5678:"b"
}

Flow generates an error per integer key.

According to 11.1.5 of ECMA-262 this is a perfectly valid construct.

EDIT: @jgrund 's solution in #380 (comment) works well

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions