Debian Codegraph @

packages/babel-plugin-polyfill-regenerator/test/fixtures/usage-global/async/output.mjs

raw symbols SCIP
1 import "regenerator-runtime/runtime.js";
2 import "core-js/modules/es6.object.to-string.js";
3 import "core-js/modules/es6.promise.js";
4
5 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
6
7 function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
8
9 function a() {
10 return _a.apply(this, arguments);
11 }
12
13 function _a() {
14 _a = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
15 return regeneratorRuntime.wrap(function _callee$(_context) {
16 while (1) {
17 switch (_context.prev = _context.next) {
18 case 0:
19 case "end":
20 return _context.stop();
21 }
22 }
23 }, _callee);
24 }));
25 return _a.apply(this, arguments);
26 }