AST_Call.DEFMETHOD("optimize", function(compressor){
if (compressor.option("unsafe")) {
var exp = this.expression;
- if (exp instanceof AST_SymbolRef && exp.undeclared) {
+ if (exp instanceof AST_SymbolRef && exp.undeclared()) {
switch (exp.name) {
case "Array":
if (this.args.length != 1) {
AST_New.DEFMETHOD("optimize", function(compressor){
if (compressor.option("unsafe")) {
var exp = this.expression;
- if (exp instanceof AST_SymbolRef && exp.undeclared) {
+ if (exp instanceof AST_SymbolRef && exp.undeclared()) {
switch (exp.name) {
case "Object":
case "RegExp":