Skip to content

Fix compiler crash with object rest in catch binding#31522

Merged
rbuckton merged 1 commit into
masterfrom
fix30627
May 22, 2019
Merged

Fix compiler crash with object rest in catch binding#31522
rbuckton merged 1 commit into
masterfrom
fix30627

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Member

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

@weswigham
Copy link
Copy Markdown
Member

Oh, ofc, object rest !== destructuring.

@rbuckton
Copy link
Copy Markdown
Contributor 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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

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

3 participants