resourceloader: Backport jquery-migrate.js patch for exceptionHook

jQuery Migrate has to monkey-patch jQuery.Deferred, but in doing so
it also effectively disables exceptionHook, which means exceptions
are no longer logged to the console.

<https://github.com/jquery/jquery-migrate/pull/262>

Bug: T168086
Change-Id: Id46abcc7fb5e65954532b114636bf0f1f000a551
This commit is contained in:
Timo Tijhof 2017-06-22 23:49:56 +01:00
parent 468ae96d5d
commit a77525e56a

View file

@ -535,6 +535,8 @@ jQuery.Deferred = function( func ) {
return deferred;
};
// Preserve handler of uncaught exceptions in promise chains
jQuery.Deferred.exceptionHook = oldDeferred.exceptionHook;
})( jQuery, window );