Skip to content

Commit

Permalink
Run flowSensitiveInlineVariables pass when language_out is ES6+.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=163860040
  • Loading branch information
lillymliu authored and dimvar committed Aug 1, 2017
1 parent 3cd5c12 commit 8e14cc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/google/javascript/jscomp/DefaultPassConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2717,6 +2717,11 @@ protected CompilerPass create(AbstractCompiler compiler) {
protected CompilerPass create(AbstractCompiler compiler) {
return new FlowSensitiveInlineVariables(compiler);
}

@Override
public FeatureSet featureSet() {
return ES8_MODULES;
}
};

/** Uses register-allocation algorithms to use fewer variables. */
Expand Down

0 comments on commit 8e14cc8

Please sign in to comment.