Fix forwarding promise rejection arguments

Follow-up to arrow functions refactoring
(4db99d7a27).

Change-Id: I6ea41256d9a91552736742100630aab333375125
This commit is contained in:
Bartosz Dziewoński 2024-11-14 22:30:05 +01:00
parent bf22d07d2b
commit 02654c0086

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 );
}
);