| Index: lib/compiler/implementation/lib/js_helper.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/lib/js_helper.dart (revision 13271)
|
| +++ lib/compiler/implementation/lib/js_helper.dart (working copy)
|
| @@ -378,8 +378,11 @@
|
| }
|
|
|
| // Inside browser.
|
| - if (JS('bool', r'typeof console == "object"')) {
|
| - JS('void', r'console.log(#)', string);
|
| + if (JS('bool', r'typeof window == "object"')) {
|
| + // On IE, the console is only defined if dev tools is open.
|
| + if (JS('bool', r'typeof console == "object"')) {
|
| + JS('void', r'console.log(#)', string);
|
| + }
|
| return;
|
| }
|
|
|
|
|