Correctly eat a semicolon at the end of DelcareModuleExports
This commit is contained in:
@@ -117,6 +117,8 @@ pp.flowParseDeclareModuleExports = function (node) {
|
||||
this.expect(tt.dot);
|
||||
this.expectContextual("exports");
|
||||
node.typeAnnotation = this.flowParseTypeAnnotation();
|
||||
this.semicolon();
|
||||
|
||||
return this.finishNode(node, "DeclareModuleExports");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user