22 lines
1.0 KiB
JavaScript
22 lines
1.0 KiB
JavaScript
import "babel-polyfill/lib/core-js/modules/es6.promise";
|
|
import "babel-polyfill/lib/regenerator-runtime/runtime";
|
|
|
|
var a = function () {
|
|
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
|
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, this);
|
|
}));
|
|
|
|
return function a() {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
function _asyncToGenerator(fn) { return function () { var _this = this, _arguments = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(_this, _arguments); function step(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); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; } |