[Pkg-javascript-commits] [pdf.js] 126/207: Not ignoring MissingDataException exception.

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit fbdab2c7c5a5164676bc656442ad1996a7624472
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Wed Jun 18 18:21:21 2014 -0500

    Not ignoring MissingDataException exception.
---
 src/core/parser.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/core/parser.js b/src/core/parser.js
index 8b4d2ee..4ff40fb 100644
--- a/src/core/parser.js
+++ b/src/core/parser.js
@@ -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);
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list