Don't print the warning on parse error, just throw a JS_Parse_Error.
authorMihai Bazon <mihai@bazon.net>
Sat, 23 Mar 2013 22:57:35 +0000 (00:57 +0200)
committerMihai Bazon <mihai@bazon.net>
Sat, 23 Mar 2013 22:57:35 +0000 (00:57 +0200)
Fix #159

lib/parse.js

index dba8702..da39b5b 100644 (file)
@@ -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);
 };