closure-compiler icon indicating copy to clipboard operation
closure-compiler copied to clipboard

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

Open brad4d opened this issue 4 years ago • 3 comments

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.

brad4d avatar Feb 25 '20 22:02 brad4d

@brad4d I am interested in this one.

cshung avatar Oct 03 '20 02:10 cshung

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

brad4d avatar Oct 05 '20 13:10 brad4d

i can also do it

adiroy05 avatar Dec 14 '21 20:12 adiroy05