| Index: lib/compiler/implementation/lib/core_patch.dart
|
| diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
|
| index 4e22ea13ab51d931a8a572ffcbaa52b8af3d9d9f..5aa14c12e83825c75bb691f0e802f53041876aaf 100644
|
| --- a/lib/compiler/implementation/lib/core_patch.dart
|
| +++ b/lib/compiler/implementation/lib/core_patch.dart
|
| @@ -4,6 +4,16 @@
|
|
|
| // Patch file for dart:core classes.
|
|
|
| +// Patch for 'print' function.
|
| +patch void print(var obj) {
|
| + if (obj is String) {
|
| + Primitives.printString(obj);
|
| + } else {
|
| + Primitives.printString(obj.toString());
|
| + }
|
| +}
|
| +
|
| +
|
| // Patch for Object implementation.
|
| patch class Object {
|
| patch String toString() {
|
|
|