Parsing error details.

Report details of the parsing error. Related to the https://github.com/mishoo/UglifyJS2/issues/348.
This commit is contained in:
MariasStory 2016-12-12 22:32:47 +01:00 committed by GitHub
parent 5c7705fcad
commit 06d45286cd

View File

@ -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() {