diff --git a/src/Statement.js b/src/Statement.js index 357f2a4..fe1682c 100644 --- a/src/Statement.js +++ b/src/Statement.js @@ -13,7 +13,7 @@ function isIife ( node, parent ) { function isReference ( node, parent ) { if ( node.type === 'MemberExpression' ) { - return !node.computed; + return !node.computed && isReference( node.object, node ); } if ( node.type === 'Identifier' ) {