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

Fix suppressed error order #16440

Merged
merged 6 commits into from Apr 22, 2024

Conversation

sossost
Copy link
Contributor

@sossost sossost commented Apr 20, 2024

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

The order in which errors are passed to the SuppressedError constructor has been changed.

@babel-bot
Copy link
Collaborator

babel-bot commented Apr 20, 2024

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

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.

Thank you! Could you re-run make build and commit packages/babel-helpers/src/helpers-generated.ts?

@sossost
Copy link
Contributor Author

sossost commented Apr 20, 2024

Sure! I re-run make build and committed the additional files.
However, the failed CI test does not pass.

@@ -13,7 +13,7 @@ function helper(minVersion: string, source: string) {
}

export default Object.freeze({
// size: 1126, gzip size: 512
// size: 1126, gzip size: 511
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect the node.js in your environment is installed by homebrew, which links to the latest zlib version 1.3.1. Can you post the result of node -e "console.log(process.versions.zlib)"?

For reference, it prints 1.2.13.1-motley-5daffc7 for the official Node.js 20 build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I type node -e "console.log(process.versions.zlib)", it says 1.2.13.1-motley.

@liuxingbaoyu liuxingbaoyu added PR: Bug Fix 🐛 A type of pull request used for our changelog categories Spec: Explicit Resource Management labels Apr 20, 2024
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!

@nicolo-ribaudo nicolo-ribaudo merged commit ca50141 into babel:main Apr 22, 2024
50 checks passed
@sossost
Copy link
Contributor Author

sossost commented Apr 22, 2024

Thanks @nicolo-ribaudo, @JLHwung . Although it is a small task and I received a lot of help, this is a great motivation and accomplishment for me. I will grow into a better developer.

@nicolo-ribaudo
Copy link
Member

If you want to contribute more we are also happy to help! For example, #16422 is also related to explicit resource management (but it's about how we transform code, rather than the runtime helper).

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

Successfully merging this pull request may close these issues.

[Bug]: babel compile proposal-explicit-resource-management different from tsc
5 participants