diff --git a/browser.js b/browser.js index 702f2177..eaf1a133 100644 --- a/browser.js +++ b/browser.js @@ -103,9 +103,8 @@ function formatArgs() { function log() { // This hackery is required for IE8, // where the `console.log` function doesn't have 'apply' - return 'object' == typeof console - && 'function' == typeof console.log - || 'object' == typeof console.log // IE 8-9 reports console methods as objects when using the typeof operator. + return console + && console.log && Function.prototype.apply.call(console.log, console, arguments); }