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 compiler crash with object rest in catch binding #31522

Merged
merged 1 commit into from May 22, 2019
Merged

Conversation

rbuckton
Copy link
Member

@rbuckton rbuckton commented May 21, 2019

Fixes a crash when transforming the following to ES5:

try {} catch ({ a, ...b }) {}

This also relocates some of our Debug code because we had some duplicative code across different files, which I discovered while adding some additional debug info while diagnosing the issue. (moving this to a separate PR)

Fixes #30627

@weswigham
Copy link
Member

I thought we did this in the es2015 transformer (see: #11757 )?

@weswigham
Copy link
Member

Oh, ofc, object rest !== destructuring.

@rbuckton
Copy link
Member Author

Object rest is destructuring, but wasn't introduced in es2015.

@rbuckton rbuckton merged commit c3055e5 into master May 22, 2019
@rbuckton rbuckton deleted the fix30627 branch May 22, 2019 18:20
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.

"Debug Failure. False expression: Too many nodes written to output." for catch ({ a, ...b })
3 participants