diff --git a/modules/ve-mw/preinit/ve.init.mw.DiffLoader.js b/modules/ve-mw/preinit/ve.init.mw.DiffLoader.js index d1e59e52c1..d04e9ba93c 100644 --- a/modules/ve-mw/preinit/ve.init.mw.DiffLoader.js +++ b/modules/ve-mw/preinit/ve.init.mw.DiffLoader.js @@ -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 ); } );