Files
oxc-project__oxc/tasks/coverage/misc/fail/oxc-12816.ts
Ulrich Stark 65aca9eeb9 fix(parser): reset popped lexer errors when rewinding (#13494)
Closes #12816.
Alternative to #13460.

This PR is the slightly cleaner way to fix the issue compared to the
other PR, but comes at a potential performance cost because now instead
of remembering how many errors there were, we are storing a clone of all
errors and re-assign them when rewinding.

This makes it possible to fix the issue because now even errors before a
checkpoint, that were popped/removed after the checkpoint, are properly
rewinded.
2025-09-01 22:54:27 +08:00

1 line
14 B
TypeScript