packages/babel-plugin-transform-regenerator/test/fixtures/scope/10193/output.js
raw| 1 | "use strict"; |
| 2 | |
| 3 | var _actions = require("actions"); |
| 4 | var _marked = /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(foo); |
| 5 | function foo() { |
| 6 | var someAction; |
| 7 | return babelHelpers.regeneratorRuntime().wrap(function foo$(_context) { |
| 8 | while (1) switch (_context.prev = _context.next) { |
| 9 | case 0: |
| 10 | someAction = bar; |
| 11 | case 1: |
| 12 | case "end": |
| 13 | return _context.stop(); |
| 14 | } |
| 15 | }, _marked); |
| 16 | } |