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

Unified Diff: lib/runtime/dart_library.js

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Added utilities to help debugging Created 5 years, 5 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: lib/runtime/dart_library.js
diff --git a/lib/runtime/dart_library.js b/lib/runtime/dart_library.js
index 39394299298fda967063f289e854698cd495bc53..087db99f16a0c0e000d909e4da53bb66aced216e 100644
--- a/lib/runtime/dart_library.js
+++ b/lib/runtime/dart_library.js
@@ -119,8 +119,13 @@ var dart_library;
if (_bootstrapped) return;
_bootstrapped = true;
- // Force import of core.
- import_('dart/core');
+ // Force import of core.
+ var core = import_('dart/core');
+ core.Object.toString = function() {
+ // Interface types are represented by the corresponding constructor
+ // function. This ensures that Dart interface types print properly.
+ return this.name;
+ }
// TODO(vsm): DOM facades?
// See: https://github.com/dart-lang/dev_compiler/issues/173

Powered by Google App Engine
This is Rietveld 408576698