diff --git a/src/com/google/javascript/jscomp/FunctionToBlockMutator.java b/src/com/google/javascript/jscomp/FunctionToBlockMutator.java index 163a80f3c5f..5285a734be3 100644 --- a/src/com/google/javascript/jscomp/FunctionToBlockMutator.java +++ b/src/com/google/javascript/jscomp/FunctionToBlockMutator.java @@ -149,7 +149,7 @@ private Node mutateInternal( // that they are properly initialized. // if (isCallInLoop) { - fixUnitializedVarDeclarations(newBlock, newBlock); + fixUninitializedVarDeclarations(newBlock, newBlock); } String labelName = getLabelNameForFunction(fnName); @@ -192,7 +192,7 @@ private static void rewriteFunctionDeclarations(Node n) { * For all VAR node with uninitialized declarations, set * 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 // variables. In particular FOR-IN structures must not be modified. if (NodeUtil.isLoopStructure(n)) { @@ -212,7 +212,7 @@ private static void fixUnitializedVarDeclarations(Node n, Node containingBlock) } for (Node c = n.getFirstChild(); c != null; c = c.getNext()) { - fixUnitializedVarDeclarations(c, containingBlock); + fixUninitializedVarDeclarations(c, containingBlock); } }