Debian Codegraph @

packages/babel-plugin-transform-block-scoping/test/fixtures/general/annex-B_3_3-async-generator/input.js

raw symbols SCIP
1 // NOTE: When compiling async generators,
2 // we run the async-generator-functions transform
3 // as soon as in Program:enter, so when the block-scoping plugin
4 // runs it has already been transpiled to a plain function.
5 // The functions is thus visible to the outer scope.
6 // This is a bug.
7
8 if (true) {
9 async function* run() {
10 return true;
11 }
12 }
13
14 function test() {
15 return run();
16 }