From e0f67baf2d73d80685781b55b9fbfa41539e0f37 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sun, 24 Mar 2013 00:57:35 +0200 Subject: Don't print the warning on parse error, just throw a JS_Parse_Error. Fix #159 --- lib/parse.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/parse.js') 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); }; -- cgit v1.2.3