Skip to content

Commit

Permalink
Test arrow function inside generator. (#5605)
Browse files Browse the repository at this point in the history
  • Loading branch information
yavorsky authored and loganfsmyth committed Apr 12, 2017
1 parent d1c954b commit 3146b24
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
@@ -0,0 +1,5 @@
function* gen () {
const a = () => {
return 1;
};
}
@@ -0,0 +1,17 @@
var _marked = [gen].map(regeneratorRuntime.mark);

function gen() {
var a;
return regeneratorRuntime.wrap(function gen$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
a = () => {
return 1;
};

case 1:
case "end":
return _context.stop();
}
}, _marked[0], this);
}
@@ -0,0 +1,5 @@
{
"plugins": [
"transform-regenerator"
]
}

0 comments on commit 3146b24

Please sign in to comment.