fix pos in syntax error exception

This commit is contained in:
Mihai Bazon
2012-10-11 15:25:38 +03:00
parent fb5c01c073
commit d9d67317b1

View File

@@ -181,7 +181,7 @@ function JS_Parse_Error(message, line, col, pos) {
this.message = message; this.message = message;
this.line = line; this.line = line;
this.col = col; this.col = col;
this.pos = pos + 1; this.pos = pos;
this.stack = new Error().stack; this.stack = new Error().stack;
}; };