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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user