Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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); } }
  2.  
  3. 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); }); }; }
  4.  
  5. var pidor =
  6. /*#__PURE__*/
  7. function () {
  8.   var _pidor = _asyncToGenerator(
  9.   /*#__PURE__*/
  10.   regeneratorRuntime.mark(function _callee() {
  11.     return regeneratorRuntime.wrap(function _callee$(_context) {
  12.       while (1) {
  13.         switch (_context.prev = _context.next) {
  14.           case 0:
  15.             return _context.abrupt("return", 1);
  16.  
  17.           case 1:
  18.           case "end":
  19.             return _context.stop();
  20.         }
  21.       }
  22.     }, _callee);
  23.   }));
  24.  
  25.   function pidor() {
  26.     return _pidor.apply(this, arguments);
  27.   }
  28.  
  29.   return pidor;
  30. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement