google/closure-compiler

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

开放

#3,559 创建于 2020年2月25日

 (3 条评论) (0 个反应) (0 位负责人)Java (1,197 个派生)batch import
P3good first issue

仓库指标

星标
 (7,176 个星标)
PR 合并指标
 (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.

贡献者指南