Skip to content

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 8, 2016

Fixes #7863

Previously, chained destructuring object assignments would fail when the leftmost target was empty because the shortcut code would forget to check whether the right-hand side was also a destructuring assignment.

Previously, chained destructuring object assignments would fail when the leftmost target was empty because the shortcut code would forget to check whether the right-hand side was also a destructuring assignment.
@yuit yuit added the Domain: Transforms Relates to the public transform API label Apr 11, 2016
@yuit
Copy link
Contributor

yuit commented Apr 11, 2016

👍 No update on the baselines?

@sandersn sandersn changed the title Correct destructuring assignment to empty object [Transforms] Correct destructuring assignment to empty object Apr 12, 2016
@sandersn
Copy link
Member Author

Good idea. I'll see if any are completely fixed.

@sandersn
Copy link
Member Author

Fixed emptyAssignmentPatterns02_ES5 and emptyAssignmentPatterns03_ES5. 02 removes some unneeded parentheses too; there is no change for 03.

@yuit
Copy link
Contributor

yuit commented Apr 12, 2016

Look good :)

@sandersn sandersn merged commit ab49eb9 into transforms Apr 12, 2016
@sandersn sandersn deleted the fix-transforms-empty-destructuring-assignment branch April 13, 2016 22:51
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: Transforms Relates to the public transform API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants