Fix broken console.error.call in IE9
authorTimo Tijhof <ttijhof@wikimedia.org>
Thu, 28 Jun 2012 12:07:10 +0000 (14:07 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Thu, 28 Jun 2012 12:14:29 +0000 (14:14 +0200)
commit605ebb52872e4ab53f64588108d258e08bb8ea01
tree5323736f414b9230483c29ee2f98eeffa59432f9
parentee33b414dbdec8f1fb8a1625cc8ee74aeb863ac4
Fix broken console.error.call in IE9

* It turns out IE9 throws up on console.error.call
  ("TypeError: Object does not property method 'call'.")
  Which is problematic since module handlers that catch exceptions
  and try to log them, now still get a global uncaught exception.
  Luckily it only affected users of IE9 that have DevTools installed
  locally -and- were on a page with module that throws an exception.

* Follows-up 4c80300499d783333e24331f7c5a368ecf24c3bf

* Now just not logging the exception object if there is no
  console.error. Pretty much every console has it, and when they
  don't, then having the exception object is likely not going to
  help either. Not to confuse with mw.log, which is elaborate
  cross-browser fallbacks and always shows all information in the
  browser somehow. This is for logging errors without debug mode.

Change-Id: I1bf6c6f963ca64182dd447bebc0e6751bce325ae
resources/mediawiki/mediawiki.js