set generator on correct node #252
This commit is contained in:
parent
706626f79a
commit
af21c52cc6
@ -16,7 +16,7 @@ var build = function (node, file) {
|
|||||||
var body = block.body;
|
var body = block.body;
|
||||||
|
|
||||||
if (traverse.hasType(node, "YieldExpression", t.FUNCTION_TYPES)) {
|
if (traverse.hasType(node, "YieldExpression", t.FUNCTION_TYPES)) {
|
||||||
container.generator = true;
|
container.callee.generator = true;
|
||||||
container = t.yieldExpression(container, true);
|
container = t.yieldExpression(container, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user