From d9d67317b1283886b24fec9a4c6607bf729a5e59 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Thu, 11 Oct 2012 15:25:38 +0300 Subject: [PATCH] fix pos in syntax error exception --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index 074e118a..a87e868d 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -181,7 +181,7 @@ function JS_Parse_Error(message, line, col, pos) { this.message = message; this.line = line; this.col = col; - this.pos = pos + 1; + this.pos = pos; this.stack = new Error().stack; }; -- 2.34.1