Index: sdk/lib/_internal/compiler/js_lib/core_patch.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/core_patch.dart b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
index ce675bfed672000d0c8aa93237976b628664b9c8..d42f9a854e1d7be99076861688d9a6eb6cab4d9f 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
@@ -42,7 +42,7 @@ class Object { |
@patch |
- String toString() => Primitives.objectToString(this); |
+ String toString() => Primitives.objectToHumanReadableString(this); |
@patch |
dynamic noSuchMethod(Invocation invocation) { |
@@ -154,7 +154,7 @@ class Error { |
static String _objectToString(Object object) { |
// Closures all have useful and safe toString methods. |
if (object is Closure) return object.toString(); |
- return Primitives.objectToString(object); |
+ return Primitives.objectToHumanReadableString(object); |
} |
@patch |