[Pkg-javascript-commits] [node-acorn-jsx] 255/484: Renamed _multiplyModulo to _modulo as it's left as the only purpose of this token.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit f0579c3e56d6c90d0029e1597989d828910d0f46
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Mon Jul 28 10:45:13 2014 +0300

    Renamed _multiplyModulo to _modulo as it's left as the only purpose of this token.
---
 acorn.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acorn.js b/acorn.js
index 4dda5b6..83a60b5 100644
--- a/acorn.js
+++ b/acorn.js
@@ -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};
@@ -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) { // '|&'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list