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

@@ -34,7 +34,7 @@ export default class LooseClassTransformer extends VanillaTransformer {
classRef = this._protoAlias;
}
const methodName = t.memberExpression(
classRef,
t.cloneNode(classRef),
node.key,
node.computed || t.isLiteral(node.key),
);