fix: for-of transform should skip for-await-of (#11023)
This commit is contained in:
committed by
Nicolò Ribaudo
parent
3daab41e61
commit
06dace1cdb
1
packages/babel-plugin-transform-for-of/test/fixtures/for-of-as-array/for-await-of/input.js
vendored
Normal file
1
packages/babel-plugin-transform-for-of/test/fixtures/for-of-as-array/for-await-of/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
async () => { for await (let foo of []); };
|
||||
3
packages/babel-plugin-transform-for-of/test/fixtures/for-of-as-array/for-await-of/output.js
vendored
Normal file
3
packages/babel-plugin-transform-for-of/test/fixtures/for-of-as-array/for-await-of/output.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
async () => {
|
||||
for await (let foo of []);
|
||||
};
|
||||
Reference in New Issue
Block a user