Don't print the warning on parse error, just throw a JS_Parse_Error.

Fix #159
This commit is contained in:
Mihai Bazon
2013-03-24 00:57:35 +02:00
parent b14d3df3d2
commit e0f67baf2d

View 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);
};