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 typo: identifer -> identifier #10647

Merged
merged 2 commits into from Nov 6, 2019

Conversation

leonid-shevtsov
Copy link
Contributor

Initially I only noticed the babel-types typo, but searching revealed two more - including one in a test that shouldn't be passing with the typo? Weird.

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

Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

Thanks.

@@ -197,7 +197,7 @@ describe("generation", function() {

const id2 = fn.body.body[0].expression;
id2.name += "2";
id2.loc.identiferName = "bar";
id2.loc.identifierName = "bar";
Copy link
Member

Choose a reason for hiding this comment

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

It didn't fail because if name !== identifierName, @babel/generator uses name. Good catch!

@nicolo-ribaudo nicolo-ribaudo merged commit 2cd5ad0 into babel:master Nov 6, 2019
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Feb 5, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 5, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants