Fix opening of print dialog on IE when testing dart2js

Review URL: https://codereview.chromium.org//11033044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13273 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ricow@google.com
2012-10-05 06:47:12 +00:00
parent 96814a521e
commit 4e5ccffbb4
@@ -378,8 +378,11 @@ class Primitives {
}
// 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;
}