From 541b576c7adf3763db7059019dfb754ae7e9575a Mon Sep 17 00:00:00 2001 From: Sam Goldman Date: Tue, 5 Jan 2016 17:28:21 -0800 Subject: [PATCH] Guard `export interface` against `isExportDefaultSpecifier` --- src/parser/statement.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser/statement.js b/src/parser/statement.js index a0050cc2d0..1d5f112ab9 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -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)) {