diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-02 16:39:53 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-02 16:39:53 +0300 |
commit | 075f93ec0dd8a86a87632ac1e2b1aac3b115f7c0 (patch) | |
tree | 49aa5ac8db20527c1a8b0ecda6e96005501ac729 /lib/parse.js | |
parent | 2a5456260e01af2228356edfb6e31e3946fcbd91 (diff) | |
download | tracifyjs-075f93ec0dd8a86a87632ac1e2b1aac3b115f7c0.tar.gz tracifyjs-075f93ec0dd8a86a87632ac1e2b1aac3b115f7c0.zip |
line numbers start at 1
Diffstat (limited to 'lib/parse.js')
-rw-r--r-- | lib/parse.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/parse.js b/lib/parse.js index 115a42ce..b342ca4e 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -246,8 +246,8 @@ function parse_js_number(num) { function JS_Parse_Error(message, line, col, pos) { this.message = message; - this.line = line + 1; - this.col = col + 1; + this.line = line; + this.col = col; this.pos = pos + 1; this.stack = new Error().stack; }; @@ -279,7 +279,7 @@ function tokenizer($TEXT, filename) { filename : filename, pos : 0, tokpos : 0, - line : 0, + line : 1, tokline : 0, col : 0, tokcol : 0, |