Skip to content

Mark fresh spread types with ContainsObjectLiteral #19250

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

Merged
merged 2 commits into from
Oct 17, 2017

Conversation

sandersn
Copy link
Member

Fixes #19226

getSpreadType no longer added TypeFlags.ContainsObjectLiteral after I moved the flag-setting code there in #18965. It takes a parameter propagatedFlags from checkObjectLiteral, but propagatedFlags mutates over the course of checkObjectLiteral so it doesn't contain ContainsObjectLiteral now. The right thing is for getSpreadType to explicitly mark ContainsObjectLiteral on all its fresh object types.

@sandersn sandersn merged commit 487504d into master Oct 17, 2017
@sandersn sandersn deleted the mark-fresh-spread-types-with-ContainsObjectLiteral branch October 17, 2017 18:01
@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