Don't print the warning on parse error, just throw a JS_Parse_Error.
Fix #159
This commit is contained in:
parent
b14d3df3d2
commit
e0f67baf2d
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user