fix pos in syntax error exception
authorMihai Bazon <mihai@bazon.net>
Thu, 11 Oct 2012 12:25:38 +0000 (15:25 +0300)
committerMihai Bazon <mihai@bazon.net>
Thu, 11 Oct 2012 12:25:38 +0000 (15:25 +0300)
lib/parse.js

index 074e118..a87e868 100644 (file)
@@ -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;
 };