Skip to content

Fix await in function name and parameters#7727

Merged
nicolo-ribaudo merged 3 commits intobabel:masterfrom
nicolo-ribaudo:await-in-params
Nov 6, 2018
Merged

Fix await in function name and parameters#7727
nicolo-ribaudo merged 3 commits intobabel:masterfrom
nicolo-ribaudo:await-in-params

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

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

@nicolo-ribaudo nicolo-ribaudo added PR: Spec Compliance 👓 A type of pull request used for our changelog categories pkg: parser labels Apr 13, 2018
return this.finishNode(node, "MemberExpression");
} else if (!noCalls && this.match(tt.parenL)) {
const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
const oldYOAIPAP = this.state.yieldOrAwaitInPossibleArrowParameters;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Any sugestion for a shorter name than yieldOrAwaitInPossibleArrowParameters? 😆

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.

None other than Parameters -> Params, but not a huge difference lol

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Apr 13, 2018

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

JSX_invalid/migrated_0000.js
arrow_function_invalid/migrated_0002.js
async_await/async_generic_method.js
async_await/migrated_0007.js
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

@danez danez left a comment

Choose a reason for hiding this comment

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

Looks good to me. No idea for a way shorter name though.

For reference here are the fixes that acorn did to fix nearly the same things:
acornjs/acorn@7163d84
acornjs/acorn@5ab3d01

@danez
Copy link
Copy Markdown
Member

danez commented Dec 3, 2018

FYI: The tests of this PR were put into packages/babylon/tests/..., they are now moved to babel-parser in fa9df67 and run correctly :)

@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

Thank you!

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
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 pkg: parser PR: Spec Compliance 👓 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants