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

Unified Diff: runtime/vm/parser.cc

Issue 1308743006: Revert "This is a fixed up version of:" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/assertion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 23c45fdd92eedfc48f2575cb2e3e62ece3b672bd..d837830bcea0978e8e1bdf72921beade7e1f5c17 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -9091,7 +9091,7 @@ AstNode* Parser::ParseAssertStatement() {
ConsumeToken(); // Consume assert keyword.
ExpectToken(Token::kLPAREN);
const intptr_t condition_pos = TokenPos();
- if (!I->flags().asserts()) {
+ if (!I->flags().asserts() && !I->flags().type_checks()) {
SkipExpr();
ExpectToken(Token::kRPAREN);
return NULL;
« no previous file with comments | « no previous file | tests/language/assertion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698