mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Merge pull request #6358 from Snuffleupagus/Parser_tryShift-missingDataException
Don't catch `MissingDataException` in `Parser_tryShift`
This commit is contained in:
commit
582573b96b
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ var Parser = (function ParserClosure() {
|
|||
this.shift();
|
||||
return true;
|
||||
} catch (e) {
|
||||
if (e instanceof MissingDataException) {
|
||||
throw e;
|
||||
}
|
||||
// Upon failure, the caller should reset this.lexer.pos to a known good
|
||||
// state and call this.shift() twice to reset the buffers.
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue