Currently Lexer.prototype.reset and Lexer.prototype.save reference three queued fields: queuedToken, queuedText (added in #169) and queuedThrow.
There only appear to be references to queuedText and queuedGroup elsewhere, so this MR removes queuedToken and
queuedThrow and adds queuedGroup to reset and save.
The below example shows how this could be problematic - on master it prints a token when it probably shouldn't:
Currently
Lexer.prototype.reset
andLexer.prototype.save
reference threequeued
fields:queuedToken
,queuedText
(added in #169) andqueuedThrow
.There only appear to be references to
queuedText
andqueuedGroup
elsewhere, so this MR removesqueuedToken
andqueuedThrow
and addsqueuedGroup
toreset
andsave
.The below example shows how this could be problematic - on master it prints a token when it probably shouldn't: