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:
parent
468ae96d5d
commit
a77525e56a
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue