Ensure that the original state is restored on lookahead - fixes #2086
This commit is contained in:
@@ -91,7 +91,8 @@ export default class Tokenizer {
|
||||
// TODO
|
||||
|
||||
lookahead() {
|
||||
var old = this.state.clone();
|
||||
var old = this.state;
|
||||
this.state = old.clone();
|
||||
this.next();
|
||||
var curr = this.state.clone();
|
||||
this.state = old;
|
||||
|
||||
Reference in New Issue
Block a user