From: Mihai Bazon Date: Sat, 23 Mar 2013 22:57:35 +0000 (+0200) Subject: Don't print the warning on parse error, just throw a JS_Parse_Error. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e0f67baf2d73d80685781b55b9fbfa41539e0f37;p=UglifyJS.git Don't print the warning on parse error, just throw a JS_Parse_Error. Fix #159 --- diff --git a/lib/parse.js b/lib/parse.js index dba87023..da39b5b1 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -190,12 +190,6 @@ JS_Parse_Error.prototype.toString = function() { }; function js_error(message, filename, line, col, pos) { - AST_Node.warn("ERROR: {message} [{file}:{line},{col}]", { - message: message, - file: filename, - line: line, - col: col - }); throw new JS_Parse_Error(message, line, col, pos); };