Skip to content

Commit

Permalink
Fixed regenerator related fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Aug 15, 2017
1 parent a98e01d commit 52d025b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ Object.defineProperty(exports, "__esModule", {
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var foo = function () {
var _ref2 = _asyncToGenerator(regeneratorRuntime.mark(function _callee3() {
var _ref2 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee3() {
var bar = function () {
var _ref3 = _asyncToGenerator(regeneratorRuntime.mark(function _callee2() {
var _ref3 = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee2() {
var baz;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
Expand Down Expand Up @@ -58,7 +62,9 @@ var Foo = function () {
_createClass(Foo, [{
key: "bar",
value: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
var _ref = _asyncToGenerator(
/*#__PURE__*/
regeneratorRuntime.mark(function _callee() {
var baz;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ var Example = function () {
await Promise.resolve(2);
};

Example.prototype.test2 = regeneratorRuntime.mark(function test2() {
Example.prototype.test2 =
/*#__PURE__*/
regeneratorRuntime.mark(function test2() {
return regeneratorRuntime.wrap(function test2$(_context) {
while (1) {
switch (_context.prev = _context.next) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = _callee;

var _marked = [_callee].map(regeneratorRuntime.mark);
var _marked =
/*#__PURE__*/
regeneratorRuntime.mark(_callee);

function _callee() {
var x;
Expand All @@ -25,5 +27,5 @@ function _callee() {
return _context.stop();
}
}
}, _marked[0], this);
}, _marked, this);
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ var _keys2 = _interopRequireDefault(_keys);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _marked = [fn].map(_regenerator2.default.mark);
var _marked =
/*#__PURE__*/
_regenerator2.default.mark(fn);

(0, _keys2.default)({});

Expand All @@ -23,5 +25,5 @@ function fn() {
return _context.stop();
}
}
}, _marked[0], this);
}, _marked, this);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var func = regeneratorRuntime.mark(function _callee() {var actual;return regeneratorRuntime.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
var func = /*#__PURE__*/regeneratorRuntime.mark(function _callee() {var actual;return regeneratorRuntime.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
obj.
method().
method2());case 2:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import _regeneratorRuntime from "foo/regenerator";
import _Symbol from "foo/core-js/symbol";

var _marked = [giveWord].map(_regeneratorRuntime.mark);
var _marked =
/*#__PURE__*/
_regeneratorRuntime.mark(giveWord);

import foo, * as bar from "someModule";
export const myWord = _Symbol("abc");
Expand All @@ -16,7 +18,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}
foo;
bar;
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import _regeneratorRuntime from "babel-runtime/regenerator";
import _Symbol from "babel-runtime/core-js/symbol";

var _marked = [giveWord].map(_regeneratorRuntime.mark);
var _marked =
/*#__PURE__*/
_regeneratorRuntime.mark(giveWord);

import foo, * as bar from "someModule";
export const myWord = _Symbol("abc");
Expand All @@ -16,7 +18,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}
foo;
bar;
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import _regeneratorRuntime from "babel-runtime/regenerator";
void _regeneratorRuntime.mark(function _callee() {
void
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
Expand Down

0 comments on commit 52d025b

Please sign in to comment.