Skip to content

Spec allows missing initializer in destructuring lexical bindings #6785

Closed

Description

TypeScript's specification seems to allow a missing initializer for destructuring lexical bindings, whereas the EC262 specification does not. Is this intentional? In that case, I believe it should only be allowed in the case that a type annotation is present, e.g., in let [x, y]: number[]; The current playground implementation seems to disallow this.

Activity

  1. changed the title [-]Spec allows missing initializer in destructuring lexical bindings[/-] [+]Spec allows missing initializer in destructuring lexical bindings @Spec[/+] on Feb 1, 2016
  2. changed the title [-]Spec allows missing initializer in destructuring lexical bindings @Spec[/-] [+]Spec allows missing initializer in destructuring lexical bindings[/+] on Feb 1, 2016
  3. RyanCavanaugh commented on Feb 1, 2016

    @RyanCavanaugh
    Member

    The initializer for DestructuringLexicalBinding should not be opt

  4. RyanCavanaugh commented on Jul 20, 2020

    @RyanCavanaugh
    Member

    The spec is now an "archived" artifact and we won't be tracking defects against it anymore.

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

Metadata

Metadata

Labels

SpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions