Merge branch 'master' of github.com:babel/babel

This commit is contained in:
Sebastian McKenzie
2015-04-13 21:57:04 -07:00
6 changed files with 45 additions and 0 deletions

View File

@@ -552,6 +552,11 @@ class ClassTransformer {
this.instancePropBody.push(t.expressionStatement(
t.assignmentExpression("=", t.memberExpression(t.thisExpression(), node.key), node.value)
));
node.value = null;
}
if (!node.value) {
node.value = t.identifier("undefined");
}