Skip to content

Commit 6c807c6

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
No public description
PiperOrigin-RevId: 723994879
1 parent 716c5ec commit 6c807c6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/com/google/javascript/jscomp/DefaultPassConfig.java

+2
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ protected PassListBuilder getFinalizations() {
695695
// This pass works best after collapseVariableDeclarations.
696696
passes.maybeAdd(denormalize);
697697

698+
passes.maybeAdd(createEmptyPass(PassNames.BEFORE_VARIABLE_RENAMING));
699+
698700
if (options.variableRenaming != VariableRenamingPolicy.ALL) {
699701
// If we're leaving some (or all) variables with their old names,
700702
// then we need to undo any of the markers we added for distinguishing

src/com/google/javascript/jscomp/PassNames.java

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public final class PassNames {
3535
public static final String BEFORE_MAIN_OPTIMIZATIONS = "beforeMainOptimizations";
3636
public static final String BEFORE_TYPE_CHECKING = "beforeTypeChecking";
3737
public static final String BEFORE_SERIALIZATION = "beforeSerialization";
38+
public static final String BEFORE_VARIABLE_RENAMING = "beforeVariableRenaming";
3839
public static final String CHECK_CONFORMANCE = "checkConformance";
3940
public static final String CHECK_REG_EXP = "checkRegExp";
4041
public static final String CHECK_TYPES = "checkTypes";

0 commit comments

Comments
 (0)