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

Unified Diff: runtime/lib/print_patch.dart

Issue 27112002: Make print interceptable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 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: runtime/lib/print_patch.dart
diff --git a/runtime/lib/print_patch.dart b/runtime/lib/print_patch.dart
index 53d034c4feee95283009f508502e5cc0f4a1a4ac..186b4fb8ecee7eb7ce6f7752deb1105df4fa55be 100644
--- a/runtime/lib/print_patch.dart
+++ b/runtime/lib/print_patch.dart
@@ -4,8 +4,8 @@
typedef void _PrintClosure(Object obj);
-patch void print(Object obj) {
- _printClosure(obj.toString());
+patch void printToConsole(String line) {
+ _printClosure(line);
}
void _unsupportedPrint(Object obj) {

Powered by Google App Engine
This is Rietveld 408576698