google/closure-compiler
在 GitHub 查看need flag to enable `CompilerOptions.setAssumeStaticInheritanceRequired(true)`
Open
#3,559 建立於 2020年2月25日
P3good first issue
倉庫指標
- Star
- (7,176 star)
- PR 合併指標
- (平均合併 3天 4小時) (30 天內合併 1 個 PR)
描述
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.