Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index f555b6d62fb2da5536b4ba7e7cde3f1842b389e1..b12463c9fa408f2b1408e50944f93bdd1f68cf81 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -1089,10 +1089,11 @@ void Parser::ParseFunction(ParsedFunction* parsed_function) { |
#endif // !PRODUCT |
SequenceNode* node_sequence = NULL; |
switch (func.kind()) { |
- case RawFunction::kImplicitClosureFunction: |
- node_sequence = parser.ParseImplicitClosure(func); |
- break; |
case RawFunction::kClosureFunction: |
+ if (func.IsImplicitClosureFunction()) { |
+ node_sequence = parser.ParseImplicitClosure(func); |
+ break; |
+ } |
if (func.IsConstructorClosureFunction()) { |
node_sequence = parser.ParseConstructorClosure(func); |
break; |