Browse Source

fix isReference

declarations-and-references
Rich-Harris 9 years ago
parent
commit
e85bd30dbd
  1. 2
      src/Statement.js

2
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' ) {

Loading…
Cancel
Save