Merge branch 'master' of github.com:babel/babel
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user