[Pkg-javascript-commits] [node-acorn-jsx] 100/484: [loose parser] Fix bug where peeked tokens persist across parses
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:10 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 782259bea1e574f3fd39bc113880fad0df65da31
Author: Marijn Haverbeke <marijnh at gmail.com>
Date: Thu Feb 14 14:05:54 2013 +0100
[loose parser] Fix bug where peeked tokens persist across parses
---
acorn_loose.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/acorn_loose.js b/acorn_loose.js
index 97a4dd0..6f7023c 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -44,6 +44,7 @@
fetchToken = acorn.tokenize(inpt, opts);
context = [];
nextLineStart = 0;
+ ahead.length = 0;
next();
return parseTopLevel();
};
--
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