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

Unified Diff: sdk/lib/_internal/compiler/implementation/string_validator.dart

Issue 206193002: Remove cancel and make crash exit with code 253. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
Index: sdk/lib/_internal/compiler/implementation/string_validator.dart
diff --git a/sdk/lib/_internal/compiler/implementation/string_validator.dart b/sdk/lib/_internal/compiler/implementation/string_validator.dart
index ea96105dfa4598a4588a0268d9c5e6035cd62e25..140134b955f3310a37ffb4d26743b03db2cd8720 100644
--- a/sdk/lib/_internal/compiler/implementation/string_validator.dart
+++ b/sdk/lib/_internal/compiler/implementation/string_validator.dart
@@ -82,7 +82,8 @@ class StringValidator {
}
void stringParseError(String message, Token token, int offset) {
- listener.cancel("$message @ $offset", token : token);
+ listener.reportFatalError(
+ token, MessageKind.GENERIC, {'text': "$message @ $offset"});
}
/**

Powered by Google App Engine
This is Rietveld 408576698