--- old/src/jdk/nashorn/internal/codegen/SplitIntoFunctions.java 2015-07-29 17:46:28.029406300 +0530 +++ new/src/jdk/nashorn/internal/codegen/SplitIntoFunctions.java 2015-07-29 17:46:27.669405800 +0530 @@ -308,10 +308,6 @@ assert !varNode.isBlockScoped(); //TODO: we must handle these too, but we currently don't final Expression init = varNode.getInit(); - if (varNode.isAnonymousFunctionDeclaration()) { - // We ain't moving anonymous function declarations. - return super.enterVarNode(varNode); - } // Move a declaration-only var statement to the top of the outermost function. getCurrentFunctionState().varStatements.add(varNode.setInit(null));