mw.loader: Always log exceptions caught from userland callbacks
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 25 Oct 2013 19:15:00 +0000 (21:15 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 25 Oct 2013 19:15:00 +0000 (21:15 +0200)
commit8bee2b1fdfa85c4b26cb2d747a8d599b018a5d4d
treee1445e245b29e3c9e57ba6279ef8e5215c238c51
parent4f23099c223a7525774afd4d18b89cff22374581
mw.loader: Always log exceptions caught from userland callbacks

We usually don't catch these at all (not supposed to, as they're
foreign). But in case of handlePending() we catch them because
we need to ensure the state is kept track of properly (an error
is never final in javascript since execution always continues).

However we should at least log it in that case. We already did this
in case of the error() callback, it now does this for the ready()
callback as well.

Bug: 55989
Change-Id: I61f109178833fed60fbba7725fd47b4ff3d2edf4
resources/mediawiki/mediawiki.js