packages/babel-plugin-transform-regenerator/test/fixtures/scope/8525/output.js
raw| 1 | /*#__PURE__*/React.createElement(Component, null, () => { |
| 2 | const saveSession = () => { |
| 3 | var newSessionId; |
| 4 | return babelHelpers.regeneratorRuntime().async(function _callee$(_context) { |
| 5 | while (1) switch (_context.prev = _context.next) { |
| 6 | case 0: |
| 7 | _context.next = 2; |
| 8 | return babelHelpers.regeneratorRuntime().awrap(someAsyncFunc()); |
| 9 | case 2: |
| 10 | newSessionId = _context.sent; |
| 11 | case 3: |
| 12 | case "end": |
| 13 | return _context.stop(); |
| 14 | } |
| 15 | }, null, null, null, Promise); |
| 16 | }; |
| 17 | }); |