[Pkg-javascript-commits] [uglifyjs] 13/26: Prevent error for Function(""). Close #538

Jonas Smedegaard dr at jones.dk
Tue May 19 00:02:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v2.4.16
in repository uglifyjs.

commit 548beeb6b1fee91404a0c41bf9661604995cc59c
Author: Mihai Bazon <mihai at bazon.net>
Date:   Wed Aug 20 09:16:34 2014 +0300

    Prevent error for Function("").  Close #538
---
 lib/compress.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/compress.js b/lib/compress.js
index fd3f7a2..1e99f15 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()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list