Browse Source

dont add ClassExpression to scope

contingency-plan
Rich Harris 10 years ago
parent
commit
15dbac3197
  1. 1
      src/ast/analyse.js

1
src/ast/analyse.js

@ -89,7 +89,6 @@ export default function analyse ( ast, magicString, module ) {
node.declarations.forEach( node.kind === 'let' ? addToBlockScope : addToScope ); // TODO const? node.declarations.forEach( node.kind === 'let' ? addToBlockScope : addToScope ); // TODO const?
break; break;
case 'ClassExpression':
case 'ClassDeclaration': case 'ClassDeclaration':
addToScope( node ); addToScope( node );
break; break;

Loading…
Cancel
Save