[loose parser] Fix bug where peeked tokens persist across parses

This commit is contained in:
Marijn Haverbeke
2013-02-14 14:05:54 +01:00
parent adcb354498
commit 782259bea1

View File

@@ -44,6 +44,7 @@
fetchToken = acorn.tokenize(inpt, opts);
context = [];
nextLineStart = 0;
ahead.length = 0;
next();
return parseTopLevel();
};