Merge pull request #19 from charliesome/fix-right-associative-parse
Fix right associative parse precedence
This commit is contained in:
commit
a189dbdcef
2
acorn.js
2
acorn.js
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user