google/closure-compiler

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

Open

#3 559 ouverte le 25 févr. 2020

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Java (1 197 forks)batch import
P3good first issue

Métriques du dépôt

Stars
 (7 176 stars)
Métriques de merge PR
 (Merge moyen 3j 4h) (1 PR mergée en 30 j)

Description

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.

Guide contributeur