Skip to content

Fix control flow analysis of destructuring in loops - #28784

Merged
Anders Hejlsberg (ahejlsberg) merged 3 commits into
masterfrom
controlFlowDestructuringLoop
Dec 1, 2018
Merged

Fix control flow analysis of destructuring in loops#28784
Anders Hejlsberg (ahejlsberg) merged 3 commits into
masterfrom
controlFlowDestructuringLoop

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes #28758.

@ahejlsberg

Copy link
Copy Markdown
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;

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.

2 participants