packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/shadowed-promise-nested/output.js
raw symbols SCIP| 1 | let Promise; |
| 2 | function foo() { |
| 3 | return _foo.apply(this, arguments); |
| 4 | } |
| 5 | function _foo() { |
| 6 | _foo = babelHelpers.asyncToGenerator(function* () { |
| 7 | let Promise; |
| 8 | yield bar(); |
| 9 | function bar() { |
| 10 | return _bar.apply(this, arguments); |
| 11 | } |
| 12 | function _bar() { |
| 13 | _bar = babelHelpers.asyncToGenerator(function* () { |
| 14 | return Promise.resolve(); |
| 15 | }); |
| 16 | return _bar.apply(this, arguments); |
| 17 | } |
| 18 | }); |
| 19 | return _foo.apply(this, arguments); |
| 20 | } |