Remove stack trace from JS_Parse_Error, as it will always point to parse-js code.

This commit is contained in:
Jürg Lehni 2011-06-28 10:47:39 +02:00
parent d96ac85879
commit dcc7d29726

View file

@ -189,15 +189,10 @@ function JS_Parse_Error(message, line, col, pos) {
this.line = line;
this.col = col;
this.pos = pos;
try {
({})();
} catch(ex) {
this.stack = ex.stack;
};
};
JS_Parse_Error.prototype.toString = function() {
return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")";
};
function js_error(message, line, col, pos) {