Skip to content

Do not walk up control flow containers for this - #15032

Merged
Nathan Shively-Sanders (sandersn) merged 3 commits into
masterfrom
fix-anon-class-this-reference-caching
Apr 13, 2017
Merged

Nathan Shively-Sanders (sandersn) merged 3 commits into
masterfrom
fix-anon-class-this-reference-caching

Conversation

@sandersn

Copy link
Copy Markdown
Member

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

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

Sheetal Nandi (@sheetalkamat) Mohamed Hegazy (@mhegazy) can you take a look?

@sandersn
Nathan Shively-Sanders (sandersn) deleted the fix-anon-class-this-reference-caching branch April 13, 2017 22:10
@microsoft 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