Nicolò Ribaudo d23f0ae0ec
Add regression tests for regenerator (#10223)
* Add regression tests for regenerator

* Update tests
2020-03-23 20:49:59 +01:00

21 lines
519 B
JavaScript

/*#__PURE__*/
React.createElement(Component, null, () => {
const saveSession = () => {
var newSessionId;
return regeneratorRuntime.async(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return regeneratorRuntime.awrap(someAsyncFunc());
case 2:
newSessionId = _context.sent;
case 3:
case "end":
return _context.stop();
}
}, null, null, null, Promise);
};
});