[Pkg-mozext-commits] [adblock-plus] 288/464: Fixed function expression precedence
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:26 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 51c2a5f4ca641c662ddfc503b0cbedfd4acb3f3d
Author: Wladimir Palant <trev at adblockplus.org>
Date: Mon Aug 27 19:23:01 2012 +0200
Fixed function expression precedence
---
scripts/astDecompile.js | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/scripts/astDecompile.js b/scripts/astDecompile.js
index 9f3a18d..f756a62 100644
--- a/scripts/astDecompile.js
+++ b/scripts/astDecompile.js
@@ -173,24 +173,24 @@ function decompileVariableDeclarator(ast) {
/* Expressions */
let precedence = {
- "FunctionExpression": 0,
- "SequenceExpression": 1,
- "AssignmentExpression": 2,
- "YieldExpression": 3,
- "ConditionalExpression": 4,
- "||": 5,
- "&&": 6,
- "|": 7,
- "^": 8,
- "&": 9,
- "==": 10, "!=": 10, "===": 10, "!==": 10,
- "<=": 11, ">=": 11, "<": 11, ">": 11, "in": 11, "instanceof": 11,
- "<<": 12, ">>": 12, ">>>": 12,
- "+": 13, "-": 13,
- "*": 14, "/": 14, "%": 14,
- "UnaryExpression": 15,
- "UpdateExpression": 16,
- "NewExpression": 17,
+ "SequenceExpression": 0,
+ "AssignmentExpression": 1,
+ "YieldExpression": 2,
+ "ConditionalExpression": 3,
+ "||": 4,
+ "&&": 5,
+ "|": 6,
+ "^": 7,
+ "&": 8,
+ "==": 9, "!=": 9, "===": 9, "!==": 9,
+ "<=": 10, ">=": 10, "<": 10, ">": 10, "in": 10, "instanceof": 10,
+ "<<": 11, ">>": 11, ">>>": 11,
+ "+": 12, "-": 12,
+ "*": 13, "/": 13, "%": 13,
+ "UnaryExpression": 14,
+ "UpdateExpression": 15,
+ "NewExpression": 16,
+ "FunctionExpression": 17,
"CallExpression": 18, "MemberExpression": 18
/* Everything else is 19 */
};
--
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