Fix ObjectTypeCallProperty static (#298)

* add failing test for ObjectTypeCallProperty static (#297)

* fix ObjectTypeCallProperty static
This commit is contained in:
Dan Harper
2017-01-16 09:42:13 +00:00
committed by Daniel Tschinder
parent 5977479f57
commit 28c467e8fe
3 changed files with 245 additions and 1 deletions

View File

@@ -375,7 +375,7 @@ pp.flowParseObjectType = function (allowStatic, allowExact) {
if (variance) {
this.unexpected(variancePos);
}
nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, allowStatic));
nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic));
} else {
propertyKey = this.flowParseObjectPropertyKey();
if (this.isRelational("<") || this.match(tt.parenL)) {