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
Babel is removing some parentheses form this for loop, and the resulting code logs 0 instead of 1
0
1
let count = 0; for (var a = 1 || (2 in {}) in { x: 1 }) count ; console.log(count);
Same code
let count = 0; for(var a = 1 || 2 in {} in { x: 1 })count ; console.log(count);
The text was updated successfully, but these errors were encountered:
in
for
nicolo-ribaudo
Successfully merging a pull request may close this issue.
Describe the bug
Babel is removing some parentheses form this for loop, and the resulting code logs
0
instead of1
Input code
Expected behavior
Same code
Actual behavior
The text was updated successfully, but these errors were encountered: