You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spec allows missing initializer in destructuring lexical bindings #6785
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.
changed the title [-]Spec allows missing initializer in destructuring lexical bindings[/-][+]Spec allows missing initializer in destructuring lexical bindings @Spec[/+]on Feb 1, 2016
changed the title [-]Spec allows missing initializer in destructuring lexical bindings @Spec[/-][+]Spec allows missing initializer in destructuring lexical bindings[/+]on Feb 1, 2016
Activity
[-]Spec allows missing initializer in destructuring lexical bindings[/-][+]Spec allows missing initializer in destructuring lexical bindings @Spec[/+][-]Spec allows missing initializer in destructuring lexical bindings @Spec[/-][+]Spec allows missing initializer in destructuring lexical bindings[/+]RyanCavanaugh commentedon Feb 1, 2016
The initializer for DestructuringLexicalBinding should not be opt
RyanCavanaugh commentedon Jul 20, 2020
The spec is now an "archived" artifact and we won't be tracking defects against it anymore.