Fix parsing of private fields (#566)
The computed key is not part of the spec. key for ClassProperties is an Expression Do not parse computed and literal keys for PrivateClassProperties
This commit is contained in:
committed by
Henry Zhu
parent
37793d5be7
commit
69cba43f82
@@ -1294,7 +1294,6 @@ export default (superClass: Class<Parser>): Class<Parser> => class extends super
|
||||
parsePropertyName(node: N.ObjectOrClassMember): N.Identifier {
|
||||
const variance = this.flowParseVariance();
|
||||
const key = super.parsePropertyName(node);
|
||||
// $FlowFixMe (variance not defined on ClassPrivateProperty)
|
||||
node.variance = variance;
|
||||
return key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user