[Pkg-javascript-commits] [node-acorn-jsx] 385/484: Restore onToken functionality for loose parser

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:00 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 1b8069e48c440232f05a91eb96b204455df7e003
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Tue Jan 13 09:52:57 2015 +0100

    Restore onToken functionality for loose parser
---
 acorn_loose.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/acorn_loose.js b/acorn_loose.js
index 010a2d7..f575dd3 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -66,6 +66,8 @@
       ahead.length = 0;
 
     token = ahead.shift() || readToken(forceRegexp);
+    if (options.onToken)
+      options.onToken(token);
 
     if (token.start >= nextLineStart) {
       while (token.start >= nextLineStart) {

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