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

Respect BABEL_8_BREAKING option in babel-types fields test #17000

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Dec 4, 2024

Q                       A
License MIT

This PR is extracted from #16979: The fields test now respects the BABEL_8_BREAKING option and will test the AST nodes that is different between Babel 7 and Babel 8.

Previously we ignored the Babel 8 AST changes and had to filled in all the AST changes to the test file.

@babel-bot
Copy link
Collaborator

babel-bot commented Dec 4, 2024

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58407

@JLHwung JLHwung force-pushed the respect-babel-8-breaking-option branch from 134849c to c386045 Compare December 4, 2024 17:13
up to 10% faster because the Object.keys(missingFields).length check is replaced with a simple null check
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JLHwung JLHwung merged commit 651bc0b into babel:main Dec 4, 2024
54 checks passed
@JLHwung JLHwung deleted the respect-babel-8-breaking-option branch December 4, 2024 19:09
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.

3 participants