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

Support frozen built-ins in @babel/runtime #14537

Merged
merged 5 commits into from May 25, 2022
Merged

Support frozen built-ins in @babel/runtime #14537

merged 5 commits into from May 25, 2022

Conversation

Jack-Works
Copy link
Contributor

@Jack-Works Jack-Works commented May 7, 2022

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

@babel-bot
Copy link
Collaborator

babel-bot commented May 7, 2022

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

@Jack-Works
Copy link
Contributor Author

hmm 1 test failed but I don't know how to fix it, it does not have a meaningful error message

@liuxingbaoyu
Copy link
Member

The test is a bit erratic and can be ignored.

:)

@nicolo-ribaudo
Copy link
Member

Thanks for the PR! Didn't you mention a similar problem with also a different helper? #14527 (comment)

I hope one day we'll be able to run our tests with --frozen-intrinsics

@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label May 17, 2022
@nicolo-ribaudo nicolo-ribaudo changed the title fix: Cannot add property __esModule, object is not extensible on @babel/helpers Support frozen built-ins in @babel/runtime May 17, 2022
@Jack-Works
Copy link
Contributor Author

Thanks for the PR! Didn't you mention a similar problem with also a different helper? #14527 (comment)

I hope one day we'll be able to run our tests with --frozen-intrinsics

Done!

@liuxingbaoyu
Copy link
Member

liuxingbaoyu commented May 17, 2022

packages\babel-runtime\helpers\get
packages\babel-runtime\helpers\extends

These two seem to need to do the same.

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 62fd56f into babel:main May 25, 2022
@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 Aug 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
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
Projects
None yet
4 participants