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

Unified Diff: runtime/vm/parser.cc

Issue 2586363003: Remove --assert-message VM flag (Closed)
Patch Set: Merge branch 'master' into b Created 4 years 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 | no next file » | 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 1286d7c73d1c8f0cd7169a04a3d84870e7591668..9b87e85e683d7c27832861af835237a50e4244bd 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -70,7 +70,6 @@ DEFINE_FLAG(bool,
assert_initializer,
false,
"Allow asserts in initializer lists.");
-DEFINE_FLAG(bool, assert_message, false, "Allow message in assert statements");
DECLARE_FLAG(bool, profile_vm);
DECLARE_FLAG(bool, trace_service);
@@ -9165,7 +9164,7 @@ AstNode* Parser::ParseAssertStatement(bool is_const) {
const TokenPosition condition_pos = TokenPos();
if (!I->asserts()) {
SkipExpr();
- if (FLAG_assert_message && (CurrentToken() == Token::kCOMMA)) {
+ if (CurrentToken() == Token::kCOMMA) {
ConsumeToken();
SkipExpr();
}
@@ -9182,7 +9181,7 @@ AstNode* Parser::ParseAssertStatement(bool is_const) {
const TokenPosition condition_end = TokenPos();
AstNode* message = NULL;
TokenPosition message_pos = TokenPosition::kNoSource;
- if (FLAG_assert_message && CurrentToken() == Token::kCOMMA) {
+ if (CurrentToken() == Token::kCOMMA) {
ConsumeToken();
message_pos = TokenPos();
message = ParseExpr(kAllowConst, kConsumeCascades);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698