aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-10-30 09:10:56 +0200
committerMihai Bazon <mihai@bazon.net>2013-10-30 09:10:56 +0200
commitbea3d90771e98c44a6c20578aabd9ebc81edb6ed (patch)
tree39531d02390ef8ec1fcaed848471dd399afa39b8 /lib
parent785c6064cc4d28f3453e88fba3e085c4e2eaf553 (diff)
downloadtracifyjs-bea3d90771e98c44a6c20578aabd9ebc81edb6ed.tar.gz
tracifyjs-bea3d90771e98c44a6c20578aabd9ebc81edb6ed.zip
minor
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 6d69461c..3ccdec80 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -579,10 +579,10 @@ var UNARY_POSTFIX = makePredicate([ "--", "++" ]);
var ASSIGNMENT = makePredicate([ "=", "+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&=" ]);
var PRECEDENCE = (function(a, ret){
- for (var i = 0, n = 1; i < a.length; ++i, ++n) {
+ for (var i = 0; i < a.length; ++i) {
var b = a[i];
for (var j = 0; j < b.length; ++j) {
- ret[b[j]] = n;
+ ret[b[j]] = i + 1;
}
}
return ret;