[Pkg-mozext-commits] [adblock-plus] 104/464: Fix decompilation of foo["!@#bar"]
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 0c454147cf2f7d7d546ca0d94829fe6868de7dd3
Author: Wladimir Palant <trev at adblockplus.org>
Date: Thu Dec 2 20:06:44 2010 +0100
Fix decompilation of foo["!@#bar"]
---
scripts/decompile.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/decompile.js b/scripts/decompile.js
index ec2b4f8..8f527ac 100644
--- a/scripts/decompile.js
+++ b/scripts/decompile.js
@@ -199,7 +199,7 @@ let visitor = {
if (needparen)
output(")");
- if ("constmember" in expr)
+ if ("constmember" in expr && /^[_a-zA-Z]\w*$/.test(expr.constmember))
output(".").output(expr.constmember);
else {
output("[");
--
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