From: Mihai Bazon Date: Thu, 11 Oct 2012 12:25:38 +0000 (+0300) Subject: fix pos in syntax error exception X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d9d67317b1283886b24fec9a4c6607bf729a5e59;p=UglifyJS.git fix pos in syntax error exception --- 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; };