Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also emit swc recoverable errors #9650

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Also emit swc recoverable errors #9650

merged 2 commits into from
Apr 16, 2024

Conversation

mischnic
Copy link
Member

Closes #9649

Apparently, swc now returns fatal parser errors via the PResult type, but more (recoverable) errors have to be retrieved with parser.take_errors().

We didn't do the latter and the partially invalid AST was then passed to transforms.

@mischnic mischnic merged commit f84b6dc into v2 Apr 16, 2024
16 of 17 checks passed
@mischnic mischnic deleted the swc-recoverable-errors branch April 16, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic in SWC on 1 / {2}
2 participants