fix static falling through in declare class Flow AST (#135)

This commit is contained in:
Dan Harper
2016-09-21 05:17:55 +01:00
committed by Henry Zhu
parent 9cb73d8e96
commit b68918e377
3 changed files with 244 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ pp.flowParseObjectType = function (allowStatic, allowExact) {
let nodeStart = this.startNode();
let node;
let propertyKey;
let isStatic;
let isStatic = false;
nodeStart.callProperties = [];
nodeStart.properties = [];
@@ -393,6 +393,8 @@ pp.flowParseObjectType = function (allowStatic, allowExact) {
nodeStart.properties.push(this.finishNode(node, "ObjectTypeProperty"));
}
}
isStatic = false;
}
this.expect(endDelim);