Skip to content

Commit

Permalink
Warn when a pass is skipped because its incompatible with the current…
Browse files Browse the repository at this point in the history
… language mode.

This will be a little noisy for the few projects that have --language_out=ES_2015 or higher, but will make it clearer which passes are being skipped which otherwise would run.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158762960
  • Loading branch information
tbreisacher committed Jun 13, 2017
1 parent de136bb commit 69ac13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/PhaseOptimizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class NamedPass implements CompilerPass {
@Override
public void process(Node externs, Node root) {
if (!factory.featureSet().contains(compiler.getFeatureSet())) {
logger.fine(
logger.warning(
"Skipping pass " + name
+ "\nfactory features: " + factory.featureSet()
+ "\ncompiler features: " + compiler.getFeatureSet());
Expand Down

0 comments on commit 69ac13f

Please sign in to comment.