Parsing error details.
Report details of the parsing error. Related to the https://github.com/mishoo/UglifyJS2/issues/348.
This commit is contained in:
parent
5c7705fcad
commit
06d45286cd
|
|
@ -195,7 +195,7 @@ function JS_Parse_Error(message, filename, line, col, pos) {
|
|||
this.line = line;
|
||||
this.col = col;
|
||||
this.pos = pos;
|
||||
this.stack = new Error().stack;
|
||||
this.stack = new Error(this.message + " (filename: " + this.filename + ", line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n").stack;
|
||||
};
|
||||
|
||||
JS_Parse_Error.prototype.toString = function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user