Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Add regression test for invalid JSX #2386

Merged
merged 3 commits into from
Mar 23, 2017
Merged

Add regression test for invalid JSX #2386

merged 3 commits into from
Mar 23, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Mar 22, 2017

PR checklist

Overview of change:

Add regression test to avoid crashes on invalid JSX.
Fixes: #2330

CHANGELOG.md entry:

[no-log]

Add regression test to avoid crashes on invalid JSX.
Fixes: #2330
Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

looks good aside from the yarn.lock thing

yarn.lock Outdated
version "1.2.2"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.2.2.tgz#7e165c601367b9f89200b97ff47d9e38d1a6e4c8"

tsutils@^1.4.0:
Copy link
Contributor

Choose a reason for hiding this comment

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

now we have two copies of tsutils, this looks wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.
this was caused by the dependency on tslint@latest which locked that dependency of tsutils when it was installed.

const a =
<span /
>
</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: EOF newline

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.

kind of undefined in canHaveLeadingTrivia
2 participants