Not ignoring MissingDataException exception.

This commit is contained in:
Yury Delendik 2014-06-18 18:21:21 -05:00
parent ab67e1c272
commit fbdab2c7c5

View File

@ -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);
}