diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-17 15:06:06 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-17 15:06:06 +0300 |
commit | e370e3b5a4fcde13402f910a34b736847fe49a9e (patch) | |
tree | 12934498d2cf0ad380098701bfbdc74422b6242a /lib/compress.js | |
parent | 6ad414ef28e64ff7c53ee89e737f4e9d7cd2f009 (diff) | |
download | tracifyjs-e370e3b5a4fcde13402f910a34b736847fe49a9e.tar.gz tracifyjs-e370e3b5a4fcde13402f910a34b736847fe49a9e.zip |
fix .undeclared (it's now a function)
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index a7472ce7..8a2cd4cd 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1219,7 +1219,7 @@ function Compressor(options, false_by_default) { 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) { @@ -1257,7 +1257,7 @@ function Compressor(options, false_by_default) { 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": |