Skip to content

Commit

Permalink
Automated g4 rollback of changelist 163392994.
Browse files Browse the repository at this point in the history
*** Reason for rollback ***

Can cause a crash for some code

*** Original change description ***

Add ES8_MODULES feature set method for renameProperties pass

***

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=163496710
  • Loading branch information
tbreisacher authored and blickly committed Jul 31, 2017
1 parent 8fc8229 commit 9fc3fe4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions src/com/google/javascript/jscomp/DefaultPassConfig.java
Expand Up @@ -2964,12 +2964,6 @@ public void process(Node externs, Node root) {
}
};
}

@Override
protected FeatureSet featureSet() {
// This pass requires gatherExternProperties to run before it can run
return ES8_MODULES;
}
};

/** Renames variables. */
Expand Down
4 changes: 1 addition & 3 deletions test/com/google/javascript/jscomp/IntegrationTest.java
Expand Up @@ -4385,8 +4385,6 @@ public void testDefaultParametersNonTranspiling() {
CompilationLevel.ADVANCED_OPTIMIZATIONS.setOptionsForCompilationLevel(options);
options.setLanguageIn(LanguageMode.ECMASCRIPT_2017);

// For this test, coalesce variables runs followed by rename properties to produce the following
// variable/property names.
test(
options,
LINE_JOINER.join(
Expand All @@ -4396,7 +4394,7 @@ public void testDefaultParametersNonTranspiling() {
"alert(foo(3, {foo: 9}));"),
LINE_JOINER.join(
"{}",
"alert(3 + {a:9}.a);"));
"alert(3 + {foo:9}.foo);"));
}

public void testRestObjectPatternParameters() {
Expand Down

0 comments on commit 9fc3fe4

Please sign in to comment.