1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fixes wrong structure of fullReader.read() result.

This commit is contained in:
Mukul Mishra 2017-07-01 15:52:47 +05:30
parent 9e4dcf156b
commit 308a83e5ca

View file

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