drop unused builtin globals under unsafe (#2236)

fixes #2233
This commit is contained in:
Alex Lam S.L
2017-07-15 15:16:11 +08:00
committed by GitHub
parent 9282e7b0c6
commit a5ffe2c23f
3 changed files with 124 additions and 48 deletions

View File

@@ -373,14 +373,6 @@ AST_Symbol.DEFMETHOD("unreferenced", function(){
&& !(this.scope.uses_eval || this.scope.uses_with);
});
AST_Symbol.DEFMETHOD("undeclared", function(){
return this.definition().undeclared;
});
AST_LabelRef.DEFMETHOD("undeclared", return_false);
AST_Label.DEFMETHOD("undeclared", return_false);
AST_Symbol.DEFMETHOD("definition", function(){
return this.thedef;
});