drop unused variables

This commit is contained in:
Mihai Bazon
2012-09-19 12:27:38 +03:00
parent d53e1a9931
commit e8da72d304
2 changed files with 56 additions and 2 deletions

View File

@@ -296,7 +296,8 @@ AST_Label.DEFMETHOD("unmangleable", function(){
});
AST_Symbol.DEFMETHOD("unreferenced", function(){
return this.definition().references.length == 0;
return this.definition().references.length == 0
&& !(this.scope.uses_eval || this.scope.uses_with);
});
AST_Symbol.DEFMETHOD("undeclared", function(){