add missing FunctionExpression conversion when wrapping a function expression in a call for async to generator helper - fixes #2325

This commit is contained in:
Sebastian McKenzie 2015-09-05 08:41:13 +01:00
parent 392b7b0333
commit 3b301c88da

View File

@ -45,6 +45,8 @@ export default function (path, callId) {
declar._blockHoist = true;
return declar;
} else {
node.type = "FunctionExpression";
if (id) {
var state = { id };
path.traverse(referenceVisitor, state);