packages/babel-plugin-transform-regenerator/test/fixtures/misc/class-inside-generator/output.js
raw| 1 | var _marked = /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(f); |
| 2 | function f() { |
| 3 | return babelHelpers.regeneratorRuntime().wrap(function f$(_context) { |
| 4 | while (1) switch (_context.prev = _context.next) { |
| 5 | case 0: |
| 6 | class A { |
| 7 | foo() { |
| 8 | return 1; |
| 9 | } |
| 10 | } |
| 11 | ; |
| 12 | case 2: |
| 13 | case "end": |
| 14 | return _context.stop(); |
| 15 | } |
| 16 | }, _marked); |
| 17 | } |