Guard export interface against isExportDefaultSpecifier

This commit is contained in:
Sam Goldman
2016-01-05 17:28:21 -08:00
parent 17d19a0056
commit aeeffe5cff

View File

@@ -838,7 +838,9 @@ pp.parseExportDeclaration = function () {
pp.isExportDefaultSpecifier = function () {
if (this.match(tt.name)) {
return this.state.value !== "type" && this.state.value !== "async";
return this.state.value !== "type"
&& this.state.value !== "async"
&& this.state.value !== "interface";
}
if (!this.match(tt._default)) {