mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Remove spurious arguments to NullStream
constructor.
This commit is contained in:
parent
3ab1a9922a
commit
bc8f673522
1 changed files with 2 additions and 2 deletions
|
@ -563,7 +563,7 @@ var Parser = (function ParserClosure() {
|
||||||
// when we can be absolutely certain that it actually is empty.
|
// when we can be absolutely certain that it actually is empty.
|
||||||
if (maybeLength === 0) {
|
if (maybeLength === 0) {
|
||||||
warn('Empty "' + name + '" stream.');
|
warn('Empty "' + name + '" stream.');
|
||||||
return new NullStream(stream);
|
return new NullStream();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var xrefStreamStats = this.xref.stats.streamTypes;
|
var xrefStreamStats = this.xref.stats.streamTypes;
|
||||||
|
@ -623,7 +623,7 @@ var Parser = (function ParserClosure() {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
warn('Invalid stream: \"' + ex + '\"');
|
warn('Invalid stream: \"' + ex + '\"');
|
||||||
return new NullStream(stream);
|
return new NullStream();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue