Function
asyncGeneratorStep
(gen, resolve, reject, _next, _throw, key, arg)
Source from the content-addressed store, hash-verified
| 72047 | "use strict"; |
| 72048 | /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); |
| 72049 | function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { |
| 72050 | try { |
| 72051 | var info = gen[key](arg); |
| 72052 | var value = info.value; |
| 72053 | } catch (error) { |
| 72054 | reject(error); |
| 72055 | return; |
| 72056 | } |
| 72057 | |
| 72058 | if (info.done) { |
| 72059 | resolve(value); |
| 72060 | } else { |
| 72061 | Promise.resolve(value).then(_next, _throw); |
| 72062 | } |
| 72063 | } |
| 72064 | |
| 72065 | function _asyncToGenerator(fn) { |
| 72066 | return function () { |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…