Skip to content

Fix binding of this-assignments w/computed properties - #35639

Merged
Nathan Shively-Sanders (sandersn) merged 1 commit into
masterfrom
fix-binding-this-computed-property-assignment
Dec 11, 2019
Merged

Nathan Shively-Sanders (sandersn) merged 1 commit into
masterfrom
fix-binding-this-computed-property-assignment

Conversation

@sandersn

Copy link
Copy Markdown
Member

Binding of top-level this-assignments forgets to check for computed properties and tries to bind them normally. Then it hits a helpful assert which prevents that.

This change stops binding this-properties with computed properties at the top-level. There's nothing sensible we could do with them; we're unable to late-bind entries to the global scope or to modules.

Fixes #35630

Top-level this-assignments do not support computed properties. But the
binder forgets to check for computed properties and tries to bind them
normally. This hits a helpful assert.

This change stop binding this-properties with computed properties at the
top-level.  There's nothing sensible we could do with them; we're unable
to late-bind entries to the global scope or to modules.
@sandersn

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) cherry-pick this to release-3.7

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Nathan Shively-Sanders (@sandersn), I've opened #35640 for you.

TypeScript Bot (typescript-bot) pushed a commit to typescript-bot/TypeScript that referenced this pull request Dec 11, 2019
Component commits:
7c31be3 Fix binding of this-assignments w/computed properties
Top-level this-assignments do not support computed properties. But the
binder forgets to check for computed properties and tries to bind them
normally. This hits a helpful assert.

This change stop binding this-properties with computed properties at the
top-level.  There's nothing sensible we could do with them; we're unable
to late-bind entries to the global scope or to modules.
Nathan Shively-Sanders (sandersn) pushed a commit that referenced this pull request Dec 12, 2019
Component commits:
7c31be3 Fix binding of this-assignments w/computed properties
Top-level this-assignments do not support computed properties. But the
binder forgets to check for computed properties and tries to bind them
normally. This hits a helpful assert.

This change stop binding this-properties with computed properties at the
top-level.  There's nothing sensible we could do with them; we're unable
to late-bind entries to the global scope or to modules.
@sandersn
Nathan Shively-Sanders (sandersn) deleted the fix-binding-this-computed-property-assignment branch December 12, 2019 17:39
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

VS tsserver crash in openExternalProjects: Error processing request. Debug Failure. False expression.

3 participants