Skip to content

Transform assignments to private named instance fields #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

joeywatts
Copy link
Owner

No description provided.

@joeywatts joeywatts force-pushed the esnext-private-fields-access branch from 39ab860 to 2920db0 Compare October 23, 2018 19:01
@joeywatts joeywatts force-pushed the esnext-private-fields-assignment branch from 5a12944 to c527c53 Compare October 23, 2018 20:39
@joeywatts joeywatts force-pushed the esnext-private-fields-access branch from 2920db0 to 5f03c9b Compare October 25, 2018 16:33
@joeywatts joeywatts force-pushed the esnext-private-fields-assignment branch from c527c53 to 5884da5 Compare October 25, 2018 16:52
@joeywatts joeywatts force-pushed the esnext-private-fields-access branch from 5f03c9b to 3341558 Compare October 25, 2018 17:47
Joseph Watts added 4 commits October 25, 2018 13:48
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
@joeywatts joeywatts force-pushed the esnext-private-fields-assignment branch from 5884da5 to 083b4cb Compare October 25, 2018 17:48
joeywatts pushed a commit that referenced this pull request Nov 21, 2018
Moves the transformation of class properties to the ESNext transformer.

Property initializers are moved to the constructor by the TypeScript transformer only if there is constructor parameter properties. This is to preserve property initialization order.

It currently does not produce void 0 initializers for property declarations that have no initializer due to ESNext and TypeScript having different runtime behaviors. TS completely elides property declarations with no initializer, while I believe the ESNext would define that property on the instance with an undefined value (which is observable at runtime - propertyName in instance or for (var prop in instance) {}).
@joeywatts
Copy link
Owner Author

closed (refer to bloomberg#15)

@joeywatts joeywatts closed this Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant