| 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
|
|
|