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

Unified Diff: runtime/bin/builtin.dart

Issue 10887024: Move print to corelib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index d7f5974f96f8ef78caf40374e8b8e9d4e5cad60a..7d3831463d512536312463bad6075cabd0140729 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -5,15 +5,6 @@
#library("builtin");
#import("dart:uri");
-void print(arg) {
- _Logger._printString(arg.toString());
-}
-
-class _Logger {
- static void _printString(String s) native "Logger_PrintString";
-}
-
-
// The URI that the entrypoint script was loaded from. Remembered so that
// package imports can be resolved relative to it.
var _entrypoint;
@@ -24,7 +15,7 @@ var _packageRoot;
void _logResolution(String msg) {
final enabled = false;
if (enabled) {
- _Logger._printString(msg);
+ print(msg);
}
}

Powered by Google App Engine
This is Rietveld 408576698