commit 0d901b4da4d3e51304f02e2ef9ca1876aea2ed9e parent f97aad13b7ff2d97871ae5e6be70a032248f13a7 Author: Emily Eisenberg <xymostech@gmail.com> Date: Mon, 8 Jul 2013 15:37:26 -0700 Make the lexer errors actually work Auditors: spicyj Diffstat:
| M | lexer.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lexer.js b/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) {