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 for-await printing #5322

Merged
merged 1 commit into from Feb 15, 2017
Merged

Fix for-await printing #5322

merged 1 commit into from Feb 15, 2017

Conversation

danez
Copy link
Member

@danez danez commented Feb 15, 2017

Q A
Patch: Bug Fix? y
Major: Breaking Change?
Minor: New Feature?
Deprecations?
Spec Compliancy?
Tests Added/Pass? y
Fixed Tickets
License MIT
Doc PR
Dependency Changes

Only the first for-await was correctly re-printed as for-await all subsequent for-await statements
where printed as for-of as the variable op was changed inside the buildForXStatement during the first run.

Only the first for-await was correctly printed all subsequent for-await statements
where printed as for-of as the variable op was changed inside the buildForXStatement
@danez danez added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Feb 15, 2017
@mention-bot
Copy link

@danez, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loganfsmyth, @hzoo and @erikdesjardins to be potential reviewers.

@@ -18,11 +18,11 @@ async function a() {
for ({ a } in {}) {}
for ({ a } of []) {}
async function a() {
for ({ a } of []) {}
for await ({ a } of []) {}
Copy link
Member

Choose a reason for hiding this comment

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

Sad that I didn't catch this before

@existentialism
Copy link
Member

:shipit:

@codecov-io
Copy link

Codecov Report

Merging #5322 into master will decrease coverage by -0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5322      +/-   ##
==========================================
- Coverage   89.44%   89.44%   -0.01%     
==========================================
  Files         204      204              
  Lines        9950     9949       -1     
  Branches     2688     2689       +1     
==========================================
- Hits         8900     8899       -1     
  Misses       1050     1050
Impacted Files Coverage Δ
...kages/babel-generator/src/generators/statements.js 99.44% <100%> (-0.01%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff2c24e...05b0fb1. Read the comment docs.

@hzoo hzoo merged commit 28853bf into babel:master Feb 15, 2017
@hzoo hzoo mentioned this pull request Feb 23, 2017
@danez danez deleted the fix-for-await branch March 13, 2017 21:40
existentialism pushed a commit that referenced this pull request May 19, 2017
Only the first for-await was correctly printed all subsequent for-await statements
where printed as for-of as the variable op was changed inside the buildForXStatement
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants