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;
};
filename : filename,
pos : 0,
tokpos : 0,
- line : 0,
+ line : 1,
tokline : 0,
col : 0,
tokcol : 0,
});
var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
function add(source, gen_line, gen_col, orig_line, orig_col, name) {
- orig_line++;
- gen_line++;
if (orig_map) {
var info = orig_map.originalPositionFor({
line: orig_line,