Guard export interface against isExportDefaultSpecifier
This commit is contained in:
parent
a04948f70f
commit
541b576c7a
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user