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(parser): fix additional char being consumed in JSXText #259

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

yesmeck
Copy link
Contributor

@yesmeck yesmeck commented Apr 5, 2023

In its current implementation, the first char of a JSXText will be lost.

crates/oxc_parser/src/lib.rs Outdated Show resolved Hide resolved
@yesmeck yesmeck force-pushed the fix-jsx-text branch 2 times, most recently from 816a76f to 78a2158 Compare April 5, 2023 17:26
@Boshen
Copy link
Member

Boshen commented Apr 6, 2023

How did you find this? Can I know what you are working on with oxc 😁

You can remove the test by the way. It's all good if cargo coverage passes. The correct way to do this to expand the printing test coverage to include babel tests, which includes jsx in this case.

@yesmeck
Copy link
Contributor Author

yesmeck commented Apr 6, 2023

I was trying oxc lint on some random projects. Actually I found this bug when I was debugging another bug.

@Boshen Boshen merged commit b17181a into oxc-project:main Apr 6, 2023
@Boshen
Copy link
Member

Boshen commented Apr 6, 2023

Thank you for the contribution @yesmeck !

@yesmeck yesmeck deleted the fix-jsx-text branch April 6, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area - Parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants