Use right side verbatim for ES6 class setter.

This commit is contained in:
Kurt Ruppel
2015-01-24 11:15:43 -08:00
parent bbfb297d73
commit d87b70b57e
2 changed files with 2 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ ReplaceSupers.prototype.setSuperProperty = function (property, value, isStatic,
]
),
isComputed ? property : t.literal(property.name),
t.identifier(value.name),
value,
thisExpression
]
);

View File

@@ -26,8 +26,7 @@ class Cat extends Animal {
}
set name(val) {
super.name = val;
this._name += ' Cat';
super.name = val + ' Cat';
}
}