diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-03-24 00:57:35 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-03-24 00:57:35 +0200 |
commit | e0f67baf2d73d80685781b55b9fbfa41539e0f37 (patch) | |
tree | 197905b8165b1219375d4a2dd0d52192f0a36640 /lib/parse.js | |
parent | b14d3df3d26ca1de94cc617f1104391f750fd570 (diff) | |
download | tracifyjs-e0f67baf2d73d80685781b55b9fbfa41539e0f37.tar.gz tracifyjs-e0f67baf2d73d80685781b55b9fbfa41539e0f37.zip |
Don't print the warning on parse error, just throw a JS_Parse_Error.
Fix #159
Diffstat (limited to 'lib/parse.js')
-rw-r--r-- | lib/parse.js | 6 |
1 files changed, 0 insertions, 6 deletions
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); }; |