Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update regenerator #6111

Merged
merged 3 commits into from Aug 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-regenerator/package.json
Expand Up @@ -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": {
Expand Down
@@ -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:
Expand All @@ -11,4 +11,4 @@ var o = {
}
}, _callee, this);
})
};
};
Expand Up @@ -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;
Expand All @@ -25,5 +25,5 @@ function _callee() {
return _context.stop();
}
}
}, _marked[0], this);
}, _marked, this);
}
Expand Up @@ -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)({});

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

Expand All @@ -17,7 +17,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}

foo;
Expand Down
@@ -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";

Expand All @@ -17,7 +17,7 @@ export function giveWord() {
case "end":
return _context.stop();
}
}, _marked[0], this);
}, _marked, this);
}

foo;
Expand Down
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-runtime/package.json
Expand Up @@ -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",
Expand Down