aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-11 15:25:38 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-11 15:25:38 +0300
commitd9d67317b1283886b24fec9a4c6607bf729a5e59 (patch)
tree726b3e90b77d9db28d4d7e41ee3b66f6af77b512 /lib/parse.js
parentfb5c01c073d06034815d5f3b782fd11cbdf6d6f5 (diff)
downloadtracifyjs-d9d67317b1283886b24fec9a4c6607bf729a5e59.tar.gz
tracifyjs-d9d67317b1283886b24fec9a4c6607bf729a5e59.zip
fix pos in syntax error exception
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js2
1 files changed, 1 insertions, 1 deletions
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;
};