Skip to content

Fix stack overflow when resolving default construct signatures#17878

Merged
weswigham merged 2 commits into
masterfrom
max-stack-get-symbol
Aug 19, 2017
Merged

Fix stack overflow when resolving default construct signatures#17878
weswigham merged 2 commits into
masterfrom
max-stack-get-symbol

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #17231

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

@ahejlsberg ahejlsberg left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/compiler/checker.ts Outdated
if (!constructSignatures.length) {
constructSignatures = getDefaultConstructSignatures(classType);
}
(<ResolvedType>type).constructSignatures = constructSignatures || emptyArray;

Copy link
Copy Markdown
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

weswigham commented Aug 18, 2017

Copy link
Copy Markdown
Member Author

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