Debian Codegraph @

packages/babel-plugin-transform-parameters/test/fixtures/regression/15145/exec.js

raw
1 async function * foo (p = 1) {
2 yield "hello";
3 yield p;
4 }
5
6 return (async () => {
7 const res = [];
8 for await (const x of foo()) res.push(x);
9 expect(res).toEqual(["hello", 1]);
10 })();