Skip to content

Fix suppressed error order#16440

Merged
nicolo-ribaudo merged 6 commits intobabel:mainfrom
sossost:fix-suppressed-error-order
Apr 22, 2024
Merged

Fix suppressed error order#16440
nicolo-ribaudo merged 6 commits intobabel:mainfrom
sossost:fix-suppressed-error-order

Conversation

@sossost
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.


export default Object.freeze({
// size: 1126, gzip size: 512
// size: 1126, gzip size: 511
Copy link
Copy Markdown
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
Copy Markdown
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
@sossost sossost requested a review from nicolo-ribaudo April 22, 2024 14:26
Copy link
Copy Markdown
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
@sossost
Copy link
Copy Markdown
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
Copy Markdown
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).

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue 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