  
        if (// Check for a named FUNCTION.
            isGlobalFunctionDeclaration(t, parent) ||
-@@ -431,7 +388,7 @@ class AnalyzePrototypeProperties implements CompilerPass {
+@@ -431,7 +391,7 @@ class AnalyzePrototypeProperties implements CompilerPass {
            isGlobalFunctionDeclaration(t, firstChild)) {
          String name = nameNode.getString();
          getNameInfoForName(name, VAR).getDeclarations().add(

diff --git a/src/com/google/javascript/jscomp/AnalyzePrototypeProperties.java b/src/com/google/javascript/jscomp/AnalyzePrototypeProperties.java
index 1eca61cc..e8512447 100644
--- a/src/com/google/javascript/jscomp/AnalyzePrototypeProperties.java
+++ b/src/com/google/javascript/jscomp/AnalyzePrototypeProperties.java
@@ -198,50 +198,38 @@ class AnalyzePrototypeProperties implements CompilerPass {

 
     /**
      * Determines whether {@code n} is the FUNCTION node in a global function
@@ -363,22 +336,24 @@ class AnalyzePrototypeProperties implements CompilerPass {
     private boolean isGlobalFunctionDeclaration(NodeTraversal t, Node n) {
       // Make sure we're either in the global scope, or the function
       // we're looking at is the root of the current local scope.
