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

Unified Diff: runtime/lib/errors_patch.dart

Issue 2940283002: [kernel] Fix assert message. (Closed)
Patch Set: Address comments Created 3 years, 6 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 | « pkg/kernel/lib/clone.dart ('k') | runtime/vm/kernel_binary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/errors_patch.dart
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart
index 4690ba28a35a196f5f521784cde8a249d8b9c9ef..b9d1cca2cbeb7126ce0d114edcca52a5e37492d2 100644
--- a/runtime/lib/errors_patch.dart
+++ b/runtime/lib/errors_patch.dart
@@ -55,8 +55,8 @@ class _AssertionError extends Error implements AssertionError {
String toString() {
if (_url == null) {
- if (message == null) return _failedAssertion;
- return "'$_failedAssertion': $_messageString";
+ if (message == null) return _failedAssertion?.trim();
+ return "'${_failedAssertion?.trim()}': $_messageString";
}
var columnInfo = "";
if (_column > 0) {
« no previous file with comments | « pkg/kernel/lib/clone.dart ('k') | runtime/vm/kernel_binary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698