google/closure-compiler

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

Open

#3559 aperta il 25 feb 2020

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Java (1197 fork)batch import
P3good first issue

Metriche repository

Star
 (7176 star)
Metriche merge PR
 (Merge medio 12g 15h) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor