From 361ef02a88f724e30f478a69fbe9267ef04a324f Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 22:26:48 +1100 Subject: [PATCH] support ParenthesizedExpression in types.getIds --- lib/6to5/types/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index d403372d4b..175fa2c117 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -185,6 +185,8 @@ t.getIds = function (node, map) { search = search.concat(id.specifiers); } else if (t.isMemberExpression(id)) { search.push(id.object); + } else if (t.isParenthesizedExpression(id)) { + search.push(id.expression); } }