From dcc7d29726f37c38a21177133101705d5f094b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 28 Jun 2011 10:47:39 +0200 Subject: [PATCH] Remove stack trace from JS_Parse_Error, as it will always point to parse-js code. --- lib/parse-js.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) {