mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Fix compilation of parameters in async generators * Update packages/babel-plugin-transform-parameters/test/fixtures/regression/15145/options.json
11 lines
189 B
JavaScript
11 lines
189 B
JavaScript
async function * foo (p = 1) {
|
|
yield "hello";
|
|
yield p;
|
|
}
|
|
|
|
return (async () => {
|
|
const res = [];
|
|
for await (const x of foo()) res.push(x);
|
|
expect(res).toEqual(["hello", 1]);
|
|
})();
|