Merge "Fix forwarding promise rejection arguments"

This commit is contained in:
jenkins-bot 2024-11-15 11:05:05 +00:00 committed by Gerrit Code Review
commit 0ca531b130

View file

@ -64,11 +64,11 @@
true
).then(
( response ) => parseDocumentModulePromise.then( () => mw.libs.ve.diffLoader.getModelFromResponse( response, section ) ),
() => {
// Clear promise. Do not cache errors.
( ...args ) => {
// Clear promise. Do not cache errors.
delete revCache[ cacheKey ];
// Let caller handle the error code
return $.Deferred().rejectWith( this, arguments );
return $.Deferred().reject( ...args );
}
);