Merge pull request #6111 from modosc/update-regenerator

Update regenerator
This commit is contained in:
Henry Zhu
2017-08-16 10:14:19 -04:00
parent f4716dc816
commit 7b30f77954
11 changed files with 18 additions and 18 deletions

View File

@@ -7,9 +7,9 @@ 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) {
@@ -58,7 +58,7 @@ 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) {

View File

@@ -11,7 +11,7 @@ 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) {

View File

@@ -7,7 +7,7 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator",
"main": "lib/index.js",
"dependencies": {
"regenerator-transform": "0.9.11"
"regenerator-transform": "0.10.0"
},
"license": "MIT",
"devDependencies": {

View File

@@ -1,5 +1,5 @@
var o = {
foo: regeneratorRuntime.mark(function _callee() {
foo: /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@@ -11,4 +11,4 @@ var o = {
}
}, _callee, this);
})
};
};

View File

@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = _callee;
var _marked = [_callee].map(regeneratorRuntime.mark);
var _marked = /*#__PURE__*/regeneratorRuntime.mark(_callee);
function _callee() {
var x;
@@ -25,5 +25,5 @@ function _callee() {
return _context.stop();
}
}
}, _marked[0], this);
}, _marked, this);
}

View File

@@ -10,7 +10,7 @@ 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)({});
@@ -23,5 +23,5 @@ function fn() {
return _context.stop();
}
}
}, _marked[0], this);
}, _marked, this);
}

View File

@@ -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:

View File

@@ -1,7 +1,7 @@
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";
@@ -17,7 +17,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}
foo;

View File

@@ -1,7 +1,7 @@
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";
@@ -17,7 +17,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}
foo;

View File

@@ -1,5 +1,5 @@
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:

View File

@@ -7,7 +7,7 @@
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"dependencies": {
"core-js": "^2.4.0",
"regenerator-runtime": "^0.10.0"
"regenerator-runtime": "^0.11.0"
},
"devDependencies": {
"babel-helpers": "^6.22.0",