Guard export interface against isExportDefaultSpecifier

This commit is contained in:
Sam Goldman 2016-01-05 17:28:21 -08:00
parent a04948f70f
commit 541b576c7a

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)) {