google / google/closure-compiler

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

Open
#3,559 3 comments 0 reactions 0 assignees View on GitHub
good first issue P3
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.