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: update UnexpectedPrivateField error message #13975

Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Nov 17, 2021

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

Update the error message of "UnexpectedPrivateField" since it does not cover the private brand checks: #p in obj. In #13931, a private name can also appear in the key of an object pattern. At this time we think listing all the available private names position can be daunting, so in this PR we only point out the error itself.

@JLHwung JLHwung added the PR: Polish 💅 A type of pull request used for our changelog categories label Nov 17, 2021
@nicolo-ribaudo nicolo-ribaudo merged commit d30308f into babel:main Nov 17, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the update-unexpected-private-field-message branch November 17, 2021 17:54
@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 Feb 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: errors outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Polish 💅 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants