From 1912d1b26aa5ceb0947f1445939453102dabcea2 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 13 Feb 2015 18:19:27 +1100 Subject: [PATCH] remove ExportSpecifier from t.getBindingIdentifiers as it has none --- lib/6to5/types/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index 8fe0e48714..f11ed92e33 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -590,7 +590,7 @@ t.getBindingIdentifiers = function (node) { if (t.isIdentifier(id)) { ids[id.name] = id; - } else if (t.isModuleSpecifier(id)) { + } else if (t.isImportSpecifier(id)) { search.push(id.name || id.id); } else if (t.isExportDeclaration(id)) { if (t.isDeclaration(node.declaration)) {