-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(core): add support for ES2015 constructor delegation #24156
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
Conversation
The change adds better support for native ES2015 targets. The previous behavior didn't detect parameter delegation of constructor-less classes containing at least one inline property initialization before compilation.
Hi @ts2do - are you interested in working more on this PR to get it merged? I see that your repository has disappeared so I guess that you may not be working with Angular any more? |
@petebacondarwin this problem may have been resolved in angular 8 at around beta 9 or thereabouts. Best to re-test with one if the 8 rc's before devoting too much time to it. |
Yeah, I believe this fixed it #29232 |
This commit moves the delegated constructor detection to a helper function and also adds more test coverage. The original code for this came from angular#24156 thanks to @ts2do.
This commit moves the delegated constructor detection to a helper function and also adds more test coverage. The original code for this came from angular#24156 thanks to @ts2do. Closes angular#24156 Closes angular#27267 // FW-1310
…ngular#30368) This commit moves the delegated constructor detection to a helper function and also adds more test coverage. The original code for this came from angular#24156 thanks to @ts2do. Closes angular#24156 Closes angular#27267 // FW-1310 PR Close angular#30368
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The change adds better support for native ES2015 targets. The previous
behavior didn't detect parameter delegation of constructor-less classes
containing at least one inline property initialization before
compilation.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The following TypeScript code would incorrectly discard
Parent
's ctorParameters when compiled targeting ES2015, causing a runtime error when instantiated. See issue Dependency injection does not work with es2015 target in angular/material2.What is the new behavior?
The above case should now be handled properly.
Does this PR introduce a breaking change?