[Pkg-javascript-commits] [node-acorn-jsx] 374/484: Use parseExprSubscripts instead of parseExpression when parsing superclass

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:58 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 7c6a8b7c7618d8d466641a50ce39ecc8f295e5ec
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Sun Jan 4 22:30:50 2015 +0100

    Use parseExprSubscripts instead of parseExpression when parsing superclass
    
    Issue #187
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index 4212ac3..30b87d6 100644
--- a/acorn.js
+++ b/acorn.js
@@ -2412,7 +2412,7 @@
   function parseClass(node, isStatement) {
     next();
     node.id = tokType === _name ? parseIdent() : isStatement ? unexpected() : null;
-    node.superClass = eat(_extends) ? parseExpression() : null;
+    node.superClass = eat(_extends) ? parseExprSubscripts() : null;
     var classBody = startNode();
     classBody.body = [];
     expect(_braceL);

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