Skip to content

Shorthand broken (x[index] or =[]).push(item) in 1.11.0 #4321

Closed
@jjog1

Description

In 1.11.0 the follow shorthand has been broken.

(result[groupByIndex] or =[]).push(item)

Previously this would have compiled to

(result[groupByIndex] || (result[groupByIndex] = [])).push(item);

Now it throws a compilation error. Its not a major issue and a quick fix on our side but I wanted to bring it up to make sure you were aware of it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions