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
Invalid emit for property decorators on computed property names in classes #17028
This causes a reference error since _a and _b are never declared.
Note that this doesn't affect string property names without the square brackets (e.g. @x "property": any;), but this is still an issue when Symbols as property names.
In addition, the temporary variables produced for methods, properties, and properties with values are all conflicting (Playground link):
We also do not hoist computed property name expressions correctly when an initializer is present. The name should be hoisted out of the class, but instead gets executed on every class construction.
Activity
weswigham commentedon Sep 8, 2017
We also do not hoist computed property name expressions correctly when an initializer is present. The name should be hoisted out of the class, but instead gets executed on every class construction.