diff --git a/src/core/network.js b/src/core/network.js index 3ce77eb9c..fd78a3ec7 100644 --- a/src/core/network.js +++ b/src/core/network.js @@ -491,7 +491,7 @@ PDFNetworkStreamFullRequestReader.prototype = { } if (this._cachedChunks.length > 0) { var chunk = this._cachedChunks.shift(); - return Promise.resolve(chunk); + return Promise.resolve({ value: chunk, done: false, }); } if (this._done) { return Promise.resolve({ value: undefined, done: true, });