packages/babel-plugin-proposal-async-generator-functions/test/fixtures/yield-star/create-async-from-sync-iterator/output.js
raw| 1 | function fn() { |
| 2 | return _fn.apply(this, arguments); |
| 3 | } |
| 4 | function _fn() { |
| 5 | _fn = babelHelpers.wrapAsyncGenerator(function* () { |
| 6 | yield* babelHelpers.asyncGeneratorDelegate(babelHelpers.asyncIterator([Promise.resolve("ok")])); // CreateAsyncFromSyncIterator |
| 7 | }); |
| 8 | return _fn.apply(this, arguments); |
| 9 | } |