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 crash when checking invalid object rest #31530

Merged
merged 1 commit into from May 22, 2019
Merged

Fix crash when checking invalid object rest #31530

merged 1 commit into from May 22, 2019

Conversation

rbuckton
Copy link
Member

We were not checking whether a SpreadAssignment was in a valid place in an object destructuring assignment, and just assumed all properties except the last one were valid. This change ensures we do not crash and properly report an error.

Fixes #29610

@rbuckton rbuckton merged commit 6a559e3 into master May 22, 2019
@rbuckton rbuckton deleted the fix29610 branch May 22, 2019 18:21
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.

crash if SpreadAssignment in object destructuring is not last
3 participants