Skip to content

Allow binding patterns in rest binding elements #6275

@DanielRosenwasser

Description

@DanielRosenwasser

See #2519 (comment).


New grammar rules:

    BindingRestElement[Yield]:
        ...BindingIdentifier[?Yield]
        ...BindingPattern[?Yield]

Relevant section:

https://tc39.github.io/ecma262/#sec-destructuring-binding-patterns

Old work for disalllowing the construct was performed here: #2754.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptES6Relates to the ES6 Spec

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions