[Pkg-javascript-commits] [node-acorn-jsx] 288/484: Fixes marijnh/acorn#127.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:44 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 203384f7c23d169a0af96f223098985415f117df
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Tue Sep 23 23:51:39 2014 +0300

    Fixes marijnh/acorn#127.
---
 acorn.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index 7fec92f..22a9ca1 100644
--- a/acorn.js
+++ b/acorn.js
@@ -2107,7 +2107,7 @@
       elem.tail = false;
       next();
       node.quasis.push(finishNode(elem, "TemplateElement"));
-      if (eat(_bquote)) { // '`', end of template
+      if (tokType === _bquote) { // '`', end of template
         elem.tail = true;
         break;
       }
@@ -2118,6 +2118,7 @@
       expect(_braceR);
     }
     inTemplate = false;
+    next();
     return finishNode(node, "TemplateLiteral");
   }
 

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