Merge pull request #19 from charliesome/fix-right-associative-parse

Fix right associative parse precedence
This commit is contained in:
Sebastian McKenzie 2015-01-18 10:36:12 +11:00
commit a189dbdcef

View File

@ -2516,7 +2516,7 @@
next();
var start = storeCurrentPos();
if(op.rightAssociative) {
node.right = parseExprOp(parseMaybeUnary(), start, prec - 1, noIn);
node.right = parseExprOp(parseMaybeUnary(), start, minPrec, noIn);
} else {
node.right = parseExprOp(parseMaybeUnary(), start, prec, noIn);
}