[Pkg-mozext-commits] [adblock-plus] 323/464: Fixed: try..catch blocks aren't being decompiled correctly (catch handlers missing)
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit ce24723dbf68d99bc2e6d76158b49ae3d012f233
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Oct 31 11:53:37 2012 +0100
Fixed: try..catch blocks aren't being decompiled correctly (catch handlers missing)
---
scripts/astDecompile.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/astDecompile.js b/scripts/astDecompile.js
index b81290e..2a7b18d 100644
--- a/scripts/astDecompile.js
+++ b/scripts/astDecompile.js
@@ -76,8 +76,8 @@ function decompileTryStatement(ast) {
let handlers = [];
if (ast.handler && "type" in ast.handler)
handlers.push(ast.handler);
- else if (ast.handler)
- handlers = ast.handler;
+ else if (ast.handlers)
+ handlers = ast.handlers;
let handler_strs = [];
for each (let handler in handlers) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list