Skip to content

Commit

Permalink
Updating regenerator-transform and adding a test for the issue in fac…
Browse files Browse the repository at this point in the history
  • Loading branch information
aickin committed Mar 31, 2017
1 parent b3c7337 commit 60df9f3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-regenerator/package.json
Original file line number Diff line number Diff line change
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.8"
"regenerator-transform": "0.9.11"
},
"license": "MIT",
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var o = {
*foo() {
return "foo";
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var o = {
foo: regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", "foo");

case 1:
case "end":
return _context.stop();
}
}, _callee, this);
})
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["transform-regenerator"]
}

0 comments on commit 60df9f3

Please sign in to comment.