aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-03-24 00:57:35 +0200
committerMihai Bazon <mihai@bazon.net>2013-03-24 00:57:35 +0200
commite0f67baf2d73d80685781b55b9fbfa41539e0f37 (patch)
tree197905b8165b1219375d4a2dd0d52192f0a36640
parentb14d3df3d26ca1de94cc617f1104391f750fd570 (diff)
downloadtracifyjs-e0f67baf2d73d80685781b55b9fbfa41539e0f37.tar.gz
tracifyjs-e0f67baf2d73d80685781b55b9fbfa41539e0f37.zip
Don't print the warning on parse error, just throw a JS_Parse_Error.
Fix #159
-rw-r--r--lib/parse.js6
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);
};