Skip to content

Fix control flow analysis of destructuring in loops #28784

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

Merged
merged 3 commits into from
Dec 1, 2018

Conversation

ahejlsberg
Copy link
Member

Fixes #28758.

@ahejlsberg
Copy link
Member Author

Short explanation is that we now treat the following as equivalent for purposes of control flow analysis:

const y = foo.x.y;
const { y } = foo.x;
const { x: { y } } = foo;

@ahejlsberg ahejlsberg merged commit 28f8fda into master Dec 1, 2018
@ahejlsberg ahejlsberg deleted the controlFlowDestructuringLoop branch December 1, 2018 15:01
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.

2 participants