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

Do not reset shorthandAssign when parsing maybeAssign #901

Merged
merged 1 commit into from Jan 20, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jan 20, 2020

Fixes #897

Resetting shorthandAssign when parsing maybeAssign was introduced at 270dee1. It meant to fix #735, which has been recently re-fixed at babel/babel#11031.

I port that fix here so I can port another fix that is directly addressed to #897.

@marijnh marijnh merged commit 1a3a564 into acornjs:master Jan 20, 2020
@marijnh
Copy link
Member

marijnh commented Jan 20, 2020

Looks good, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment pattern should not be nested in object expression
2 participants