The Wayback Machine - https://web.archive.org/web/20201108125924/https://github.com/google/closure-compiler/issues/3559
Skip to content
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

need flag to enable `CompilerOptions.setAssumeStaticInheritanceRequired(true)` #3559

Open
brad4d opened this issue Feb 25, 2020 · 2 comments
Open

Comments

@brad4d
Copy link
Contributor

@brad4d brad4d commented Feb 25, 2020

To avoid compilation breaking uses of this and super in static methods of ES6 classes, you have to get CommandLineRunner to do CompilerOptions.setAssumeStaticInheritanceRequired(true) when creating the Compiler object.

Unfortunately, there is no flag for this yet, and we can't make it the default behavior because of increase in output code size it causes for Google projects.

This would be a good community-volunteer thing to do.

@cshung
Copy link
Contributor

@cshung cshung commented Oct 3, 2020

@brad4d
I am interested in this one.

@brad4d
Copy link
Contributor Author

@brad4d brad4d commented Oct 5, 2020

@cshung thanks for your interest. We'll look out for a PR from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.