mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Implement NullStream, fix #1832
This commit is contained in:
parent
ece9cd15d2
commit
58d6974bf5
2 changed files with 12 additions and 0 deletions
|
@ -2350,3 +2350,12 @@ var LZWStream = (function LZWStreamClosure() {
|
|||
return LZWStream;
|
||||
})();
|
||||
|
||||
var NullStream = (function NullStreamClosure() {
|
||||
function NullStream() {
|
||||
Stream.call(this, new Uint8Array(0));
|
||||
}
|
||||
|
||||
NullStream.prototype = Stream.prototype;
|
||||
|
||||
return NullStream;
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue