Debian Codegraph @

packages/babel-plugin-transform-block-scoping/test/fixtures/general/annex-B_3_3-async-generator/output.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 var _run = async function* () {
10 return true;
11 };
12 }
13 function test() {
14 return run();
15 }