We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug found in babel 6.16.
Source:
function* foo() { return (yield 1) ? 2 : 3; } console.log(foo().next());
Transformed:
function* foo() { return yield 1 ? 2 : 3; } console.log(foo().next());
Parentheses around yield 1 have been dropped!
yield 1
Steps to reproduce:
# save source as foo.js $ node foo.js { value: 1, done: false } $ babel foo.js > bar.js $ node bar.js { value: 2, done: false }
Fix was easy. I'm going to submit a PR.
The text was updated successfully, but these errors were encountered:
fixed babel#4632 - missing parentheses around yield expression in con…
1966bad
…ditional test
babel#4632 - added test
bb09ebe
fixed #4632 - missing parentheses around yield expression … (#4633)
f9ccee9
* fixed #4632 - missing parentheses around yield expression in conditional test * #4632 - added test
fixed babel#4632 - missing parentheses around yield expression … (bab…
f5e73ef
…el#4633) * fixed babel#4632 - missing parentheses around yield expression in conditional test * babel#4632 - added test
Successfully merging a pull request may close this issue.
Bug found in babel 6.16.
Source:
Transformed:
Parentheses around
yield 1
have been dropped!Steps to reproduce:
Fix was easy. I'm going to submit a PR.
The text was updated successfully, but these errors were encountered: