mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Not ignoring MissingDataException exception.
This commit is contained in:
parent
ab67e1c272
commit
fbdab2c7c5
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
FlateStream, isArray, isCmd, isDict, isInt, isName, isNum, isRef,
|
||||
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name,
|
||||
NullStream, PredictorStream, Ref, RunLengthStream, warn, info,
|
||||
StreamType */
|
||||
StreamType, MissingDataException */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -398,6 +398,9 @@ var Parser = (function ParserClosure() {
|
|||
warn('filter "' + name + '" not supported yet');
|
||||
return stream;
|
||||
} catch (ex) {
|
||||
if (ex instanceof MissingDataException) {
|
||||
throw ex;
|
||||
}
|
||||
warn('Invalid stream: \"' + ex + '\"');
|
||||
return new NullStream(stream);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue