Fixes wrong structure of fullReader.read() result.
This commit is contained in:
parent
9e4dcf156b
commit
308a83e5ca
@ -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, });
|
||||
|
Loading…
x
Reference in New Issue
Block a user