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

Unified Diff: sdk/lib/_internal/compiler/js_lib/core_patch.dart

Issue 1135653005: dart2js: Cleanups and renames in runtime code that thouches types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 5 years, 7 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: 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | sdk/lib/_internal/compiler/js_lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698