[Pkg-mozext-commits] [adblock-plus] 277/464: Fixed decompilation of |var {foo} = bar; |
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:25 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 f8ed1fc25aba7e25036a0bfb5969266d608bb0fd
Author: Wladimir Palant <trev at adblockplus.org>
Date: Thu Aug 23 15:54:50 2012 +0200
Fixed decompilation of |var {foo} = bar;|
---
scripts/astDecompile.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/astDecompile.js b/scripts/astDecompile.js
index 02dce1e..316a46f 100644
--- a/scripts/astDecompile.js
+++ b/scripts/astDecompile.js
@@ -167,8 +167,8 @@ function decompileVariableDeclaration(ast, excludeSemi) {
function decompileVariableDeclarator(ast) {
if (ast.init)
- return ast.id.name + " = " + decompileAST(ast.init);
- return ast.id.name;
+ return decompileAST(ast.id) + " = " + decompileAST(ast.init);
+ return decompileAST(ast.id);
}
/* Expressions */
--
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