Correctly eat a semicolon at the end of DelcareModuleExports

This commit is contained in:
Daniel Tschinder
2016-11-13 14:29:46 +01:00
parent c30a556615
commit ad88d461d3
3 changed files with 131 additions and 0 deletions

View File

@@ -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");
};