In IE < 10, the console.log function is implemented as a non-standard
host function (not inheriting the regular Function prototype) which
doesn't provide an "apply" method.
Change-Id: I6ecf933589ec430ff4d1748a5f3c511b692e3b9a
// Try to use an existing console
// Generally we can cache this, but in this case we want to re-evaluate this as a
// global property live so that things like Firebug Lite can take precedence.
- if ( window.console && window.console.log ) {
+ if ( window.console && window.console.log && window.console.log.apply ) {
args.unshift( prefix );
window.console.log.apply( window.console, args );
return;