Fix reused nodes - part 1 (#7149)

This commit is contained in:
Mateusz Burzyński
2018-01-11 19:31:48 +01:00
committed by Nicolò Ribaudo
parent 63ae923987
commit 912bcc186d
30 changed files with 202 additions and 117 deletions

View File

@@ -118,7 +118,7 @@ export default function(api, options) {
contextLiteral = t.thisExpression();
}
node.arguments.unshift(contextLiteral);
node.arguments.unshift(t.cloneNode(contextLiteral));
},
NewExpression(path, state) {