Skip to content

Do not walk up control flow containers for this#15032

Merged
sandersn merged 3 commits into
masterfrom
fix-anon-class-this-reference-caching
Apr 13, 2017
Merged

Do not walk up control flow containers for this#15032
sandersn merged 3 commits into
masterfrom
fix-anon-class-this-reference-caching

Conversation

@sandersn
Copy link
Copy Markdown
Member

@sandersn sandersn commented Apr 5, 2017

Do not walk up control flow containers for this. References to this should not continue looking outside their immediate container to narrow.

Introduced by #11458, which allows narrowing of captured variables inside methods of class expressions. That meant this also attempted to narrow outside its container, which meant that references to this were cached as if they were references to a single variable named "this", even though they came from different class expressions.

Fixes #14860

sandersn added 3 commits April 5, 2017 11:02
References to `this` should not continue looking outside their immediate
container to narrow. Introduced by #11458, which allows narrowing of
captured variables inside methods of class expressions.
@sandersn
Copy link
Copy Markdown
Member Author

@sheetalkamat @mhegazy can you take a look?

@sandersn sandersn merged commit d53b3ac into master Apr 13, 2017
@sandersn sandersn deleted the fix-anon-class-this-reference-caching branch April 13, 2017 22:10
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
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.

3 participants