mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Add a test
* Revert "Improve output when wrapping functions (e.g. `async` functions) (#15922)"
This reverts commit f64c854415.
* Update snapshot
13 lines
197 B
JavaScript
13 lines
197 B
JavaScript
(async function () {
|
|
let items = [1, 2, 3, 4];
|
|
for (const item of items) {
|
|
await f(async (x) => {
|
|
console.log(item);
|
|
});
|
|
}
|
|
})();
|
|
|
|
async function f(lambda) {
|
|
await lambda();
|
|
}
|