mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* Add a test
* Revert "Improve output when wrapping functions (e.g. `async` functions) (#15922)"
This reverts commit f64c854415.
* Update snapshot
15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
return (async function () {
|
|
let items = [1, 2, 3, 4];
|
|
let output = [];
|
|
for (const item of items) {
|
|
await f(async (x) => {
|
|
output.push(item);
|
|
});
|
|
}
|
|
expect(output).toStrictEqual([1, 2, 3, 4]);
|
|
})();
|
|
|
|
async function f(lambda) {
|
|
await lambda();
|
|
}
|