| Index: dart/runtime/lib/errors_patch.dart
|
| diff --git a/dart/runtime/lib/errors_patch.dart b/dart/runtime/lib/errors_patch.dart
|
| index 5547e584aabe7c33f8d5fa497607f39f9c93315d..fd6ec5800fb0236929996220c34fb799fc352d3c 100644
|
| --- a/dart/runtime/lib/errors_patch.dart
|
| +++ b/dart/runtime/lib/errors_patch.dart
|
| @@ -3,16 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| patch class NoSuchMethodError {
|
| - /* patch */ static String safeToString(Object object) {
|
| - if (object is int || object is double || object is bool || null == object) {
|
| - return object.toString();
|
| - }
|
| - if (object is String) {
|
| - // TODO(ahe): Remove hack when http://dartbug.com/4995 is fixed.
|
| - const hack = '\\' '"';
|
| - String escaped = object.replaceAll('"', hack);
|
| - return '"$escaped"';
|
| - }
|
| + /* patch */ static String _objectToString(Object object) {
|
| return Object._toString(object);
|
| }
|
| }
|
|
|