pass minPrec when right recursing rather than prec - 1

This commit is contained in:
Charlie Somerville 2015-01-18 10:34:34 +11:00
parent bdb8e57283
commit 30e9978ffb

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);
}