line numbers start at 1
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user