Skip to content

Commit 2318ca8

Browse files
authored
Merge pull request #26 from lark-parser/issue22
Bugfix for on_error (found in issue #22)
2 parents b532989 + ef50a54 commit 2318ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larkjs/lark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ class LALR_Parser extends Serialize {
26512651
e instanceof UnexpectedToken &&
26522652
e.token.type === e2.token.type &&
26532653
e2.token.type === "$END" &&
2654-
e.interactive_parser === e2.interactive_parser
2654+
e.interactive_parser.eq(e2.interactive_parser)
26552655
) {
26562656
// Prevent infinite loop
26572657
throw e2;

0 commit comments

Comments
 (0)