Debian Codegraph @

packages/babel-plugin-transform-for-of/test/fixtures/spec-exec/generator.js

raw symbols SCIP
1 function* f() {
2 yield 1; yield 2; yield 3;
3 }
4
5 let res = [];
6
7 for (const x of f()) res.push(x);
8
9 expect(res).toEqual([1, 2, 3]);