Make the lexer errors actually work
Auditors: spicyj
This commit is contained in:
parent
f97aad13b7
commit
0d901b4da4
2
lexer.js
2
lexer.js
|
@ -54,7 +54,7 @@ Lexer.prototype.lex = function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw "Unexpected character: '" + toMatch[0] + "' at position " + this._pos;
|
throw "Unexpected character: '" + this._input[0] + "' at position " + this._pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
Lexer.prototype.setInput = function(input) {
|
Lexer.prototype.setInput = function(input) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user