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

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
« no previous file with comments | « client/tests/client/samples/smoketest/dartWebBase_tests.dart ('k') | tests/corelib/corelib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/corelib.dart
===================================================================
--- frog/lib/corelib.dart (revision 3703)
+++ 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') {
kasperl 2012/01/31 05:48:42 This looks good, but you need to remove the IE pat
write(obj);
write('\n');
}''' {
« no previous file with comments | « client/tests/client/samples/smoketest/dartWebBase_tests.dart ('k') | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698