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

Unified Diff: frog/lib/corelib.dart

Issue 9302012: Better way to fix console.log in IE. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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: frog/lib/corelib.dart
===================================================================
--- frog/lib/corelib.dart (revision 3697)
+++ frog/lib/corelib.dart (working copy)
@@ -59,7 +59,7 @@
void _print(Object obj) native @'''if (typeof console == 'object') {
if (obj) obj = obj.toString();
console.log(obj);
-} else {
+} else if (typeof write === 'function') {
write(obj);
write('\n');
}''' {

Powered by Google App Engine
This is Rietveld 408576698