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

Allow JSX Element in a yield expression #1765

Closed
ghost opened this issue Feb 26, 2017 · 1 comment
Closed

Allow JSX Element in a yield expression #1765

ghost opened this issue Feb 26, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 26, 2017

Test case:

esprima.parse('function *g() { yield <b>something</b> }', { jsx: true });

Expected: a valid syntax tree.

Actual: An error "Unexpected token <".

@ariya ariya changed the title JSX mixed with JS fails Allow JSX Element in a yield expression Mar 28, 2017
@ariya
Copy link
Contributor

ariya commented Mar 28, 2017

(Issue description was edited to conform to the defect reporting guide)

ariya added a commit to ariya/esprima that referenced this issue Mar 28, 2017
@ariya ariya closed this as completed in 0ef20be Mar 29, 2017
ariya added a commit to ariya/esprima that referenced this issue Jun 9, 2017
@ariya ariya mentioned this issue Jun 10, 2017
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant