Skip to content

Conversation

liuxingbaoyu
Copy link
Member

Q                       A
Fixed Issues? Fixes #17365
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass?
Documentation PR Link
Any Dependency Changes?
License MIT

Comment on lines +331 to +336
// if ((method = entry[4]!)) {
// arg = entry[5];
// } else {
// method = OperatorType.Jump;
// arg = entry[3];
// }
Copy link
Member Author

Choose a reason for hiding this comment

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

Do you think this is useful?

Copy link
Contributor

@JLHwung JLHwung Jun 4, 2025

Choose a reason for hiding this comment

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

Maybe add a note that the following line is a golfed version of this snippet? Otherwise at first glance they look like some unused code ready for the cleanup.

@babel-bot
Copy link
Collaborator

babel-bot commented Jun 4, 2025

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

@liuxingbaoyu liuxingbaoyu added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression labels Jun 4, 2025
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! Could you check if we can maybe import some tests from the TS repo?

I'm releasing this now.

@nicolo-ribaudo nicolo-ribaudo merged commit fdbf1b3 into babel:main Jun 5, 2025
58 checks passed
@liuxingbaoyu
Copy link
Member Author

noelportillo

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: regression PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug with 7.27.5 of @babel/plugin-transform-regenerator return a magic number
5 participants