Skip to content

Commit

Permalink
Renamed _multiplyModulo to _modulo as it's left as the only purpose o…
Browse files Browse the repository at this point in the history
…f this token.
  • Loading branch information
RReverser authored and marijnh committed Jul 29, 2014
1 parent 4663f6a commit f0579c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
var _relational = {binop: 7, beforeExpr: true};
var _bitShift = {binop: 8, beforeExpr: true};
var _plusMin = {binop: 9, prefix: true, beforeExpr: true};
var _multiplyModulo = {binop: 10, beforeExpr: true};
var _modulo = {binop: 10, beforeExpr: true};

// '*' may be multiply or have special meaning in ES6
var _star = {binop: 10, beforeExpr: true};
Expand Down Expand Up @@ -636,7 +636,7 @@
function readToken_mult_modulo(code) { // '%*'
var next = input.charCodeAt(tokPos + 1);
if (next === 61) return finishOp(_assign, 2);
return finishOp(code === 42 ? _star : _multiplyModulo, 1);
return finishOp(code === 42 ? _star : _modulo, 1);
}

function readToken_pipe_amp(code) { // '|&'
Expand Down

0 comments on commit f0579c3

Please sign in to comment.