Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack overflow when resolving default construct signatures #17878

Merged
merged 2 commits into from
Aug 19, 2017

Conversation

weswigham
Copy link
Member

Fixes #17231

Applies work done in #6091 for call signatures to construct signatures.

Copy link
Member

@ahejlsberg ahejlsberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with the requested changes.

if (!constructSignatures.length) {
constructSignatures = getDefaultConstructSignatures(classType);
}
(<ResolvedType>type).constructSignatures = constructSignatures || emptyArray;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the || emptyArray.

@weswigham
Copy link
Member Author

weswigham commented Aug 18, 2017

Travis builds are broken pending this PR since we updated our version string.

@weswigham weswigham merged commit a136f55 into master Aug 19, 2017
@weswigham weswigham deleted the max-stack-get-symbol branch August 19, 2017 00:21
@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