Skip to content

Commit

Permalink
Enable the line number check for OptimizeParametersTest
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129878928
  • Loading branch information
tbreisacher authored and blickly committed Aug 10, 2016
1 parent 9eedfbc commit a369bab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/OptimizeParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ private void addVariableToFunction(Node function, Node varName, Node value) {
if (varName != null) {
stmt = NodeUtil.newVarNode(varName.getString(), value);
} else {
stmt = IR.exprResult(value);
stmt = IR.exprResult(value).useSourceInfoFrom(value);
}
block.addChildToFront(stmt);
compiler.reportCodeChange();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public CompilerPass getProcessor(Compiler compiler) {
@Override
public void setUp() {
enableNormalize();
enableLineNumberCheck(false);
}

public void testNoRemoval() {
Expand Down

0 comments on commit a369bab

Please sign in to comment.