fix path api usage in es6.forOf
This commit is contained in:
parent
c2990d3548
commit
9bc67c28e3
@ -33,7 +33,7 @@ export function ForOfStatement(node, parent, scope, file) {
|
||||
|
||||
t.inherits(loop, node);
|
||||
|
||||
if (build.replaceParent) this.parentPath.replaceWithNodes(build.node);
|
||||
if (build.replaceParent) this.parentPath.replaceWithMultiple(build.node);
|
||||
return build.node;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user