add _aliasFunction to generator comprehension container - fixes #278
This commit is contained in:
parent
c4a0f62eef
commit
f11f364d2c
@ -6,6 +6,7 @@ exports.ComprehensionExpression = function (node) {
|
|||||||
|
|
||||||
var body = [];
|
var body = [];
|
||||||
var container = t.functionExpression(null, [], t.blockStatement(body), true);
|
var container = t.functionExpression(null, [], t.blockStatement(body), true);
|
||||||
|
container._aliasFunction = true
|
||||||
|
|
||||||
body.push(arrayComprehension._build(node, function () {
|
body.push(arrayComprehension._build(node, function () {
|
||||||
return t.expressionStatement(t.yieldExpression(node.body));
|
return t.expressionStatement(t.yieldExpression(node.body));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user