diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index 3ed12a6e47..5db1a528d5 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -114,7 +114,9 @@ t.shallowEqual = function (actual, expected) { // t.isDynamic = function (node) { - if (t.isIdentifier(node) || t.isLiteral(node) || t.isThisExpression(node)) { + if (t.isParenthesizedExpression(node)) { + return t.isDynamic(node.expression); + } else if (t.isIdentifier(node) || t.isLiteral(node) || t.isThisExpression(node)) { return false; } else if (t.isMemberExpression(node)) { return t.isDynamic(node.object) || t.isDynamic(node.property);