mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Remove stack trace from JS_Parse_Error, as it will always point to parse-js code.
This commit is contained in:
parent
d96ac85879
commit
dcc7d29726
1 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue