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

Unified Diff: dart/runtime/lib/errors_patch.dart

Issue 10947026: Work around for bug 4995 to unbreak VM build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/lib/errors_patch.dart
diff --git a/dart/runtime/lib/errors_patch.dart b/dart/runtime/lib/errors_patch.dart
index c118932ae6e3c15d2611c5cd0c2bc7ebca30e4ab..5547e584aabe7c33f8d5fa497607f39f9c93315d 100644
--- a/dart/runtime/lib/errors_patch.dart
+++ b/dart/runtime/lib/errors_patch.dart
@@ -8,7 +8,9 @@ patch class NoSuchMethodError {
return object.toString();
}
if (object is String) {
- String escaped = object.replaceAll('"', '\\"');
+ // TODO(ahe): Remove hack when http://dartbug.com/4995 is fixed.
+ const hack = '\\' '"';
+ String escaped = object.replaceAll('"', hack);
return '"$escaped"';
}
return Object._toString(object);
« 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