mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +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,
|
FlateStream, isArray, isCmd, isDict, isInt, isName, isNum, isRef,
|
||||||
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name,
|
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name,
|
||||||
NullStream, PredictorStream, Ref, RunLengthStream, warn, info,
|
NullStream, PredictorStream, Ref, RunLengthStream, warn, info,
|
||||||
StreamType */
|
StreamType, MissingDataException */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -398,6 +398,9 @@ var Parser = (function ParserClosure() {
|
||||||
warn('filter "' + name + '" not supported yet');
|
warn('filter "' + name + '" not supported yet');
|
||||||
return stream;
|
return stream;
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
|
if (ex instanceof MissingDataException) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
warn('Invalid stream: \"' + ex + '\"');
|
warn('Invalid stream: \"' + ex + '\"');
|
||||||
return new NullStream(stream);
|
return new NullStream(stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue