Fix UpdateExpression handling in es2015-modules-commonjs, resolve #4462

This commit is contained in:
Moti Zilberman
2016-09-13 19:06:52 +03:00
parent de975b9660
commit 43e0cfb08d
4 changed files with 19 additions and 2 deletions

View File

@@ -119,8 +119,7 @@ export default function () {
}
nodes.push(t.binaryExpression(operator, arg.node, t.numericLiteral(1)));
let newPaths = path.replaceWithMultiple(t.sequenceExpression(nodes));
for (const newPath of newPaths) this.requeueInParent(newPath);
path.replaceWithMultiple(t.sequenceExpression(nodes));
}
};