Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: runtime/vm/parser.cc

Issue 991373003: Allow await in assert (fix issue 22728). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/regress_22728_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | tests/language/regress_22728_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698