Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=146714530
  • Loading branch information
tbreisacher authored and blickly committed Feb 7, 2017
1 parent ed87226 commit 3b33799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/google/javascript/jscomp/FunctionToBlockMutator.java
Expand Up @@ -149,7 +149,7 @@ private Node mutateInternal(
// that they are properly initialized. // that they are properly initialized.
// //
if (isCallInLoop) { if (isCallInLoop) {
fixUnitializedVarDeclarations(newBlock, newBlock); fixUninitializedVarDeclarations(newBlock, newBlock);
} }


String labelName = getLabelNameForFunction(fnName); String labelName = getLabelNameForFunction(fnName);
Expand Down Expand Up @@ -192,7 +192,7 @@ private static void rewriteFunctionDeclarations(Node n) {
* For all VAR node with uninitialized declarations, set * For all VAR node with uninitialized declarations, set
* the values to be "undefined". * the values to be "undefined".
*/ */
private static void fixUnitializedVarDeclarations(Node n, Node containingBlock) { private static void fixUninitializedVarDeclarations(Node n, Node containingBlock) {
// Inner loop structure must already have logic to initialize its // Inner loop structure must already have logic to initialize its
// variables. In particular FOR-IN structures must not be modified. // variables. In particular FOR-IN structures must not be modified.
if (NodeUtil.isLoopStructure(n)) { if (NodeUtil.isLoopStructure(n)) {
Expand All @@ -212,7 +212,7 @@ private static void fixUnitializedVarDeclarations(Node n, Node containingBlock)
} }


for (Node c = n.getFirstChild(); c != null; c = c.getNext()) { for (Node c = n.getFirstChild(); c != null; c = c.getNext()) {
fixUnitializedVarDeclarations(c, containingBlock); fixUninitializedVarDeclarations(c, containingBlock);
} }
} }


Expand Down

0 comments on commit 3b33799

Please sign in to comment.