[Pkg-mozext-commits] [adblock-plus] 105/464: Made sure that foo.apply() isn't interpreted as a let statement

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 d6e029293e77ad8558ed9bc48b24359efcca8a43
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Thu Dec 2 20:21:46 2010 +0100

    Made sure that foo.apply() isn't interpreted as a let statement
---
 utils/astml.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/astml.js b/utils/astml.js
index 3df14ad..a7c7761 100644
--- a/utils/astml.js
+++ b/utils/astml.js
@@ -364,7 +364,7 @@ function convertTOK_RC(pn) {
 }
 
 function convertTOK_LP(pn) {
-  if (pn.op != JSOP_CALL) {
+  if (pn.op != JSOP_CALL && pn.op != JSOP_APPLY) {
     let ast = shellNode(pn, "LetStatement");
     ast.variables = [parseToAst(x) for each (x in pn.kids)];
     return ast;

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