[Pkg-javascript-commits] [node-acorn-jsx] 350/484: Disallow parenthesis in patterns

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:54 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 ba73b0e17ef65fa0519e052827d6f21fb8806ec7
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Sun Nov 9 15:08:59 2014 +0200

    Disallow parenthesis in patterns
    
    Fixes #155
---
 acorn.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/acorn.js b/acorn.js
index 753ba2b..daa502a 100644
--- a/acorn.js
+++ b/acorn.js
@@ -1495,10 +1495,6 @@
       case "SpreadElement":
         break;
 
-      case "ParenthesizedExpression":
-        checkLVal(expr.expression);
-        break;
-
       default:
         raise(expr.start, "Assigning to rvalue");
     }

-- 
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