avancement planning
This commit is contained in:
+2
-2
@@ -184,8 +184,8 @@ function replaceExpressionWithStatements(nodes) {
|
||||
}
|
||||
callee.arrowFunctionToExpression();
|
||||
const newCallee = callee;
|
||||
const needToAwaitFunction = isParentAsync && _index.default.hasType(this.get("callee.body").node, "AwaitExpression", FUNCTION_TYPES);
|
||||
const needToYieldFunction = isParentGenerator && _index.default.hasType(this.get("callee.body").node, "YieldExpression", FUNCTION_TYPES);
|
||||
const needToAwaitFunction = isParentAsync && _index.default.hasType(newCallee.node.body, "AwaitExpression", FUNCTION_TYPES);
|
||||
const needToYieldFunction = isParentGenerator && _index.default.hasType(newCallee.node.body, "YieldExpression", FUNCTION_TYPES);
|
||||
if (needToAwaitFunction) {
|
||||
newCallee.set("async", true);
|
||||
if (!needToYieldFunction) {
|
||||
|
||||
Reference in New Issue
Block a user