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
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.
The text was updated successfully, but these errors were encountered:
nickie
changed the title
Spec allows missing initializer in destructuring lexical bindings
Spec allows missing initializer in destructuring lexical bindings @Spec
Feb 1, 2016
nickie
changed the title
Spec allows missing initializer in destructuring lexical bindings @Spec
Spec allows missing initializer in destructuring lexical bindings
Feb 1, 2016
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.The text was updated successfully, but these errors were encountered: