From 235398a932066f4c720b1610aef5fc436946e269 Mon Sep 17 00:00:00 2001 From: Kai Cataldo Date: Mon, 26 Sep 2016 01:36:52 -0400 Subject: [PATCH] Remove unnecessary check --- src/parser/statement.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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