fix .undeclared (it's now a function)
This commit is contained in:
@@ -1219,7 +1219,7 @@ function Compressor(options, false_by_default) {
|
|||||||
AST_Call.DEFMETHOD("optimize", function(compressor){
|
AST_Call.DEFMETHOD("optimize", function(compressor){
|
||||||
if (compressor.option("unsafe")) {
|
if (compressor.option("unsafe")) {
|
||||||
var exp = this.expression;
|
var exp = this.expression;
|
||||||
if (exp instanceof AST_SymbolRef && exp.undeclared) {
|
if (exp instanceof AST_SymbolRef && exp.undeclared()) {
|
||||||
switch (exp.name) {
|
switch (exp.name) {
|
||||||
case "Array":
|
case "Array":
|
||||||
if (this.args.length != 1) {
|
if (this.args.length != 1) {
|
||||||
@@ -1257,7 +1257,7 @@ function Compressor(options, false_by_default) {
|
|||||||
AST_New.DEFMETHOD("optimize", function(compressor){
|
AST_New.DEFMETHOD("optimize", function(compressor){
|
||||||
if (compressor.option("unsafe")) {
|
if (compressor.option("unsafe")) {
|
||||||
var exp = this.expression;
|
var exp = this.expression;
|
||||||
if (exp instanceof AST_SymbolRef && exp.undeclared) {
|
if (exp instanceof AST_SymbolRef && exp.undeclared()) {
|
||||||
switch (exp.name) {
|
switch (exp.name) {
|
||||||
case "Object":
|
case "Object":
|
||||||
case "RegExp":
|
case "RegExp":
|
||||||
|
|||||||
Reference in New Issue
Block a user