Krinkle has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/360999 )
Change subject: resourceloader: Backport jquery-migrate.js patch for exceptionHook ...................................................................... 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 --- M resources/lib/jquery/jquery.migrate.js 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/99/360999/1 diff --git a/resources/lib/jquery/jquery.migrate.js b/resources/lib/jquery/jquery.migrate.js index 05b1a80..879509f 100644 --- a/resources/lib/jquery/jquery.migrate.js +++ b/resources/lib/jquery/jquery.migrate.js @@ -535,6 +535,8 @@ return deferred; }; +// Preserve handler of uncaught exceptions in promise chains +jQuery.Deferred.exceptionHook = oldDeferred.exceptionHook; })( jQuery, window ); -- To view, visit https://gerrit.wikimedia.org/r/360999 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id46abcc7fb5e65954532b114636bf0f1f000a551 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Krinkle <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
