[Pkg-mozext-commits] [adblock-plus] 107/464: Fixed: Wrong decompilation of empty functions, bogus semicolon added
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:08 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 621365b182e3340a213445d938a13ba3c14af7f9
Author: Wladimir Palant <trev at adblockplus.org>
Date: Mon Dec 6 20:37:33 2010 +0100
Fixed: Wrong decompilation of empty functions, bogus semicolon added
---
scripts/decompile.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/decompile.js b/scripts/decompile.js
index 6032c1c..9e3417c 100644
--- a/scripts/decompile.js
+++ b/scripts/decompile.js
@@ -40,8 +40,8 @@ let visitor = {
this._visitArray(func.arguments, '(', ') ');
if (func.body.type == "EmptyStatement")
output("{ }");
-
- func.body.visit(this);
+ else
+ func.body.visit(this);
return true;
},
visitParameter: function (p) {
--
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