Don't catch MissingDataException
in Parser_tryShift
I overlooked this while reviewing PR 6197, but I don't think that we should be catching that particular kind of exception here; hence this patch.
This commit is contained in:
parent
421289c7bc
commit
8c3b8238ac
@ -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…
Reference in New Issue
Block a user