Fix for-await printing (#5322)
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
This commit is contained in:
committed by
Henry Zhu
parent
ff2c24eed2
commit
28853bf190
@@ -18,11 +18,11 @@ async function a() {
|
||||
for ({ a } in {}) {}
|
||||
for ({ a } of []) {}
|
||||
async function a() {
|
||||
for ({ a } of []) {}
|
||||
for await ({ a } of []) {}
|
||||
}
|
||||
|
||||
for (a in {}) {}
|
||||
for (a of []) {}
|
||||
async function a() {
|
||||
for (a of []) {}
|
||||
for await (a of []) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user