| 1 |
var Example = /*#__PURE__*/function () { |
| 2 |
"use strict"; |
| 3 |
|
| 4 |
function Example() {} |
| 5 |
var _proto = Example.prototype; |
| 6 |
_proto.test1 = /*#__PURE__*/function () { |
| 7 |
var _test = babelHelpers.asyncToGenerator( /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(function _callee() { |
| 8 |
return babelHelpers.regeneratorRuntime().wrap(function _callee$(_context) { |
| 9 |
while (1) switch (_context.prev = _context.next) { |
| 10 |
case 0: |
| 11 |
_context.next = 2; |
| 12 |
return Promise.resolve(2); |
| 13 |
case 2: |
| 14 |
case "end": |
| 15 |
return _context.stop(); |
| 16 |
} |
| 17 |
}, _callee); |
| 18 |
})); |
| 19 |
function test1() { |
| 20 |
return _test.apply(this, arguments); |
| 21 |
} |
| 22 |
return test1; |
| 23 |
}(); |
| 24 |
_proto.test2 = /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(function test2() { |
| 25 |
return babelHelpers.regeneratorRuntime().wrap(function test2$(_context2) { |
| 26 |
while (1) switch (_context2.prev = _context2.next) { |
| 27 |
case 0: |
| 28 |
_context2.next = 2; |
| 29 |
return 3; |
| 30 |
case 2: |
| 31 |
case "end": |
| 32 |
return _context2.stop(); |
| 33 |
} |
| 34 |
}, test2); |
| 35 |
}); |
| 36 |
return Example; |
| 37 |
}(); |