MCPcopy Index your code
hub / github.com/tdewolff/minify / asyncGeneratorStep

Function asyncGeneratorStep

_benchmarks/sample_antd.js:72049–72063  ·  view source on GitHub ↗
(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; });
72049function 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
72065function _asyncToGenerator(fn) {
72066 return function () {

Callers 2

_nextFunction · 0.85
_throwFunction · 0.85

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…