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

Unified Diff: runtime/lib/errors_patch.dart

Issue 36323003: - Ensure that the token stream from generated source matches the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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: runtime/lib/errors_patch.dart
===================================================================
--- runtime/lib/errors_patch.dart (revision 28974)
+++ runtime/lib/errors_patch.dart (working copy)
@@ -20,7 +20,12 @@
native "AssertionError_throwNew";
String toString() {
- return "'$_url': Failed assertion: line $_line pos $_column: "
+ var columnInfo = "";
+ if (_column > 0) {
+ // Only add column information if it is valid.
+ columnInfo = " pos $_column";
+ }
+ return "'$_url': Failed assertion: line $_line$columnInfo: "
"'$_failedAssertion' is not true.";
}
final String _failedAssertion;
« no previous file with comments | « runtime/lib/errors.cc ('k') | runtime/lib/integers.cc » ('j') | runtime/vm/scanner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698