Skip to content

Commit

Permalink
Merge pull request #26 from lark-parser/issue22
Browse files Browse the repository at this point in the history
Bugfix for on_error (found in issue #22)
  • Loading branch information
erezsh authored Apr 11, 2022
2 parents b532989 + ef50a54 commit 2318ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larkjs/lark.js
Original file line number Diff line number Diff line change
Expand Up @@ -2651,7 +2651,7 @@ class LALR_Parser extends Serialize {
e instanceof UnexpectedToken &&
e.token.type === e2.token.type &&
e2.token.type === "$END" &&
e.interactive_parser === e2.interactive_parser
e.interactive_parser.eq(e2.interactive_parser)
) {
// Prevent infinite loop
throw e2;
Expand Down

0 comments on commit 2318ca8

Please sign in to comment.