Make the lexer errors actually work

Auditors: spicyj
This commit is contained in:
Emily Eisenberg 2013-07-08 15:37:26 -07:00
parent f97aad13b7
commit 0d901b4da4

View File

@ -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) {