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

defend against infinite loop on broken babel config #1277

Merged
merged 1 commit into from
Nov 16, 2022
Merged

defend against infinite loop on broken babel config #1277

merged 1 commit into from
Nov 16, 2022

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Nov 10, 2022

It's not legal to have an empty array as a plugin in a babel config -- that definitely makes babel blow up. But in that case, our serialization code runs first and can get trapped in an infinite loop on the bad plugin.

This prevents the loop so you can get to the real babel crash instead.

@ef4 ef4 added the bug Something isn't working label Nov 10, 2022
It's not legal to have an empty array as a plugin in a babel config -- that definitely makes babel blow up. But in that case, our serialization code runs first and can get trapped in an infinite loop on the bad plugin.

This prevents the loop so you can get to the real babel crash instead.
@ef4 ef4 merged commit aea93d7 into main Nov 16, 2022
@ef4 ef4 deleted the loop-fix branch November 16, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant