mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
65aca9eeb9
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.
1 line
14 B
TypeScript
1 line
14 B
TypeScript
{if(\ ()<1){}} |