This commit is contained in:
MariasStory 2017-02-26 17:55:45 +00:00 committed by GitHub
commit bcc1dbb7b2

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