diff --git a/src/parser/statement.js b/src/parser/statement.js index b35c397a8e..4d90fd613d 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -913,9 +913,7 @@ pp.checkExport = function (node, checkNames, isDefault) { } else if (node.specifiers && node.specifiers.length) { // Named exports for (let specifier of node.specifiers) { - const name = specifier.exported.name; - if (name === "default") isDefault = true; - this.checkDuplicateExports(specifier, name); + this.checkDuplicateExports(specifier, specifier.exported.name); } } else if (node.declaration) { // Exported declarations