From 0d901b4da4d3e51304f02e2ef9ca1876aea2ed9e Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Mon, 8 Jul 2013 15:37:26 -0700 Subject: [PATCH] Make the lexer errors actually work Auditors: spicyj --- lexer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.js b/lexer.js index 0606cdcac..a59ff7689 100644 --- 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) {