Skip to content

Commit

Permalink
Disable CoalesceVariables in ES6-out mode.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168760650
  • Loading branch information
tbreisacher authored and lauraharker committed Sep 14, 2017
1 parent 1a8bb56 commit 68a64d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/com/google/javascript/jscomp/DefaultPassConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -878,12 +878,11 @@ protected List<PassFactory> getOptimizations() {
if (options.foldConstants) {
passes.add(peepholeOptimizationsOnce);
}
} else {
// Passes after this point can no longer depend on normalized AST
// assumptions.
passes.add(markUnnormalized);
}

// Passes after this point can no longer depend on normalized AST assumptions.
passes.add(markUnnormalized);

if (options.collapseVariableDeclarations) {
passes.add(exploitAssign);
passes.add(collapseVariableDeclarations);
Expand Down Expand Up @@ -2815,7 +2814,8 @@ protected CompilerPass create(AbstractCompiler compiler) {

@Override
protected FeatureSet featureSet() {
return ES8_MODULES;
// TODO(b/65688660): Switch to ES8_MODULES when b/65688660 is fixed.
return ES5;
}
};

Expand Down

0 comments on commit 68a64d6

Please sign in to comment.