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

Disallow reinitializing private elements #13601

Merged
merged 33 commits into from Aug 30, 2021

Conversation

komyg
Copy link
Contributor

@komyg komyg commented Jul 26, 2021

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

@komyg komyg changed the title Fix/bug 13299 class members Fix 13299 Jul 26, 2021
@jridgewell jridgewell changed the title Fix 13299 Fix reinitialized private field Jul 26, 2021
@babel-bot
Copy link
Collaborator

babel-bot commented Jul 26, 2021

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 26, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ebf193c:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo added PR: Spec Compliance 👓 A type of pull request used for our changelog categories Spec: Class Fields labels Jul 26, 2021
@colinaaa
Copy link
Contributor

colinaaa commented Aug 3, 2021

Since #13570 has been merged, you probably need to rebase to main and write code with typings

@komyg
Copy link
Contributor Author

komyg commented Aug 5, 2021

Since #13570 has been merged, you probably need to rebase to main and write code with typings

Done!

Thank you for the typings by the way. They will be very hepful.

@nicolo-ribaudo
Copy link
Member

Can you run OVERWRITE=true yarn jest or OVERWRITE=true make test?

@komyg
Copy link
Contributor Author

komyg commented Aug 7, 2021

Can you run OVERWRITE=true yarn jest or OVERWRITE=true make test?

Done.

I've pushed all the snapshot changes.

@nicolo-ribaudo
Copy link
Member

The CI failure would be fixed by rebasing; don't worry about it.

@komyg komyg marked this pull request as ready for review August 12, 2021 16:42
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!

komyg and others added 4 commits August 18, 2021 07:12
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
@komyg
Copy link
Contributor Author

komyg commented Aug 18, 2021

Hi @nicolo-ribaudo, @jridgewell, @JLHwung and @colinaaa, I've incorporated all of your suggestions and added the latest changes from the main branch.

Would you like to re-review it?

Copy link
Member

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for working on this!

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!

@nicolo-ribaudo nicolo-ribaudo changed the title Fix reinitialized private field Disallow reinitializing private elements Aug 30, 2021
@nicolo-ribaudo nicolo-ribaudo merged commit fdfe978 into babel:main Aug 30, 2021
@komyg komyg deleted the fix/bug-13299-class-members branch August 30, 2021 11:16
@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 Nov 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2021
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: Spec Compliance 👓 A type of pull request used for our changelog categories Spec: Class Fields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Class Private Fields/Accessors/Methods must not be re-initialized on instance
6 participants