stop traversal when it is clear that optimization is impossible
This commit is contained in:
parent
5d83638583
commit
b5f3c3f4cc
@ -11,7 +11,7 @@ var memberExpressionVisitor = {
|
||||
|
||||
if (t.isFunctionDeclaration(node) || t.isFunctionExpression(node)) {
|
||||
state.isOptimizable = false;
|
||||
return this.skip();
|
||||
return this.stop();
|
||||
}
|
||||
|
||||
if (!t.isReferencedIdentifier(node, parent, { name: state.name })) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user