Skip to content

Commit

Permalink
Update Babel 8 fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 25, 2022
1 parent fc4c1ff commit 7e0df3e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 46 deletions.
Expand Up @@ -5,14 +5,12 @@ function test() {
function _test() {
_test = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
console.log('test');
case 1:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
console.log('test');
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
Expand All @@ -24,19 +22,17 @@ function main() {
function _main() {
_main = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.t0 = console;
_context2.next = 3;
return test();
case 3:
_context2.t1 = _context2.sent;
_context2.t0.log.call(_context2.t0, _context2.t1);
case 5:
case "end":
return _context2.stop();
}
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.t0 = console;
_context2.next = 3;
return test();
case 3:
_context2.t1 = _context2.sent;
_context2.t0.log.call(_context2.t0, _context2.t1);
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
Expand Down
Expand Up @@ -167,18 +167,16 @@ function agf() {
function _agf() {
_agf = babelHelpers.wrapAsyncGenerator( /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(function _callee() {
return babelHelpers.regeneratorRuntime().wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return babelHelpers.awaitAsyncGenerator(1);
case 2:
_context.next = 4;
return 2;
case 4:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return babelHelpers.awaitAsyncGenerator(1);
case 2:
_context.next = 4;
return 2;
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
Expand Down

0 comments on commit 7e0df3e

Please sign in to comment.