Skip to content

fix typo: identifer -> identifier#10647

Merged
nicolo-ribaudo merged 2 commits intobabel:masterfrom
leonid-shevtsov:fix-typo-identifer
Nov 6, 2019
Merged

fix typo: identifer -> identifier#10647
nicolo-ribaudo merged 2 commits intobabel:masterfrom
leonid-shevtsov:fix-typo-identifer

Conversation

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

const id2 = fn.body.body[0].expression;
id2.name += "2";
id2.loc.identiferName = "bar";
id2.loc.identifierName = "bar";
Copy link
Copy Markdown
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.

3 participants