mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* fix * review * Update packages/babel-preset-env/test/fixtures/plugins-integration/issue-11610/options.json Co-authored-by: Nicolò Ribaudo <[email protected]> * fix * Update packages/babel-plugin-proposal-async-generator-functions/src/index.ts Co-authored-by: Nicolò Ribaudo <[email protected]>
12 lines
191 B
JavaScript
12 lines
191 B
JavaScript
const arr = [];
|
|
async function v(source = 2) {
|
|
for await (source of [1]) {
|
|
arr.push(source);
|
|
}
|
|
expect(source).toEqual(1);
|
|
}
|
|
return v().then(() => {
|
|
expect(arr).toEqual([1]);
|
|
});
|
|
|