diff options
author | Mihai Bazon <mihai@bazon.net> | 2014-08-20 09:16:34 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2014-08-20 09:16:34 +0300 |
commit | 548beeb6b1fee91404a0c41bf9661604995cc59c (patch) | |
tree | c05b3139100ad7ed7a31224c7cb31d88a0059e45 | |
parent | e3066f957710f266484ce7f5e8dfb581f7a698cc (diff) | |
download | tracifyjs-548beeb6b1fee91404a0c41bf9661604995cc59c.tar.gz tracifyjs-548beeb6b1fee91404a0c41bf9661604995cc59c.zip |
Prevent error for Function(""). Close #538
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index fd3f7a21..1e99f158 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1745,6 +1745,7 @@ merge(Compressor.prototype, { } catch(ex) { if (ex !== ast) throw ex; }; + if (!fun) return self; var args = fun.argnames.map(function(arg, i){ return make_node(AST_String, self.args[i], { value: arg.print_to_string() |