[Pkg-javascript-commits] [uglifyjs] 01/28: Handle TryStatements trees from acorn >=0.2.0

Jonas Smedegaard dr at jones.dk
Thu Oct 16 11:57:29 UTC 2014


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

js pushed a commit to branch master
in repository uglifyjs.

commit 514936beb875b27d5df8b16b59a71b7424a427e1
Author: Conrad Irwin <conrad.irwin at gmail.com>
Date:   Thu Mar 6 17:07:49 2014 -0800

    Handle TryStatements trees from acorn >=0.2.0
---
 lib/mozilla-ast.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index d795094..bc24dfd 100644
--- a/lib/mozilla-ast.js
+++ b/lib/mozilla-ast.js
@@ -51,7 +51,7 @@
                 start    : my_start_token(M),
                 end      : my_end_token(M),
                 body     : from_moz(M.block).body,
-                bcatch   : from_moz(M.handlers[0]),
+                bcatch   : from_moz(M.handlers ? M.handlers[0] : M.handler),
                 bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null
             });
         },

-- 
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