diff --git a/lib/parse-js.js b/lib/parse-js.js index 95eb804c..e6996da0 100644 --- a/lib/parse-js.js +++ b/lib/parse-js.js @@ -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) {