Skip to content

Fix contextually typing arguments object#18392

Merged
sandersn merged 2 commits into
masterfrom
fix-contextually-typing-arguments-object
Sep 11, 2017
Merged

Fix contextually typing arguments object#18392
sandersn merged 2 commits into
masterfrom
fix-contextually-typing-arguments-object

Conversation

@sandersn
Copy link
Copy Markdown
Member

Fixes #16585

assignContextualParameterTypes handles the arguments object correctly now. Previously, it would crash; the arguments object is a transient symbol with no declaration, and getEffectiveTypeAnnotationNode does not handle undefined.

Previously, it would crash — the arguments object is a transient
symbol with no declaration, and `getEffectiveTypeAnnotationNode`
does not accept `undefined`.
@sandersn sandersn merged commit 2fbc225 into master Sep 11, 2017
@sandersn sandersn deleted the fix-contextually-typing-arguments-object branch September 11, 2017 23:22
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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