Skip to content

Fix jsx element parsing within ternary#24149

Merged
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:jsx-parse-predicament
May 16, 2018
Merged

Fix jsx element parsing within ternary#24149
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:jsx-parse-predicament

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #24121

Previously type parsing wasn't allowed to "fail" (return undefined), however to support speculative arrow parsing in JSX, it must be able to fail (as we could be inside a speculative arrow parse in a conditional and attempt to parse a jsx tag as an arrow function type start, which needs to fail when, eg, we encounter a child or end tag).

@weswigham weswigham merged commit 60df467 into microsoft:master May 16, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 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