Index: sdk/lib/core/print.dart |
diff --git a/sdk/lib/core/print.dart b/sdk/lib/core/print.dart |
index 17ef81707af8bf2a0ba8e923ccda447acbb4e0ff..4379ceb47d7dace623252f3740141b9b2077599d 100644 |
--- a/sdk/lib/core/print.dart |
+++ b/sdk/lib/core/print.dart |
@@ -4,4 +4,11 @@ |
part of dart.core; |
-external void print(Object object); |
+void print(Object object) { |
+ String line = object.toString(); |
+ if (printToZone == null) { |
+ printToConsole(line); |
+ } else { |
+ printToZone(line); |
+ } |
+} |