Set the correct node type in helper-remap-async-to-generator

This commit is contained in:
phantom10111
2015-11-07 23:06:02 +01:00
parent 9d43776fbe
commit 1f38dcdf8a

View File

@@ -62,6 +62,8 @@ function plainFunction(path: NodePath, callId: Object) {
let retFunction = container.body.body[1].argument;
if (path.isFunctionDeclaration()) {
node.type = "FunctionExpression";
let declar = t.variableDeclaration("let", [
t.variableDeclarator(
t.identifier(asyncFnId.name),