Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Arrow function body should be ObjectExpression (fixes #331) #334

Merged
merged 1 commit into from
Jul 10, 2017

Conversation

soda0289
Copy link
Member

We have to ensure we only label ObjectLiteralExpression nodes as ObjectPattern when they have an ancestor of BinaryExpression that is not in an arrow function. There might be a better way. I think ObjectPatterns node can only have ancestors of BinaryExpression and ParthensisExpression but would need more test cases.

@soda0289 soda0289 requested a review from JamesHenry June 28, 2017 03:33
@eslintbot
Copy link

LGTM

Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Sorry, for the delay, thanks for this!

@JamesHenry JamesHenry merged commit 074a64f into master Jul 10, 2017
@JamesHenry JamesHenry deleted the fix-arrow-object-expression branch July 10, 2017 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants