| Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/parser/DartParser.java (revision 9886)
|
| +++ compiler/java/com/google/dart/compiler/parser/DartParser.java (working copy)
|
| @@ -3714,9 +3714,6 @@
|
| DartIdentifier[] namePtr = new DartIdentifier[1];
|
| DartFunction function = parseFunctionDeclarationOrExpression(namePtr, true);
|
| if (function.getBody() instanceof DartReturnBlock || peek(0) != Token.LPAREN) {
|
| - if (namePtr[0] == null) {
|
| - reportError(function, ParserErrorCode.MISSING_FUNCTION_NAME);
|
| - }
|
| return done(new DartExprStmt(doneWithoutConsuming(new DartFunctionExpression(namePtr[0],
|
| doneWithoutConsuming(function),
|
| true))));
|
|
|