Index: runtime/vm/parser.cc |
=================================================================== |
--- runtime/vm/parser.cc (revision 44383) |
+++ runtime/vm/parser.cc (working copy) |
@@ -8632,7 +8632,7 @@ |
ExpectToken(Token::kRPAREN); |
return NULL; |
} |
- AstNode* condition = ParseExpr(kAllowConst, kConsumeCascades); |
+ AstNode* condition = ParseAwaitableExpr(kAllowConst, kConsumeCascades, NULL); |
const intptr_t condition_end = TokenPos(); |
ExpectToken(Token::kRPAREN); |
condition = InsertClosureCallNodes(condition); |