public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b14d3df
)
Don't print the warning on parse error, just throw a JS_Parse_Error.
author
Mihai Bazon
<mihai@bazon.net>
Sat, 23 Mar 2013 22:57:35 +0000
(
00:57
+0200)
committer
Mihai Bazon
<mihai@bazon.net>
Sat, 23 Mar 2013 22:57:35 +0000
(
00:57
+0200)
Fix #159
lib/parse.js
patch
|
blob
|
history
diff --git
a/lib/parse.js
b/lib/parse.js
index
dba8702
..
da39b5b
100644
(file)
--- 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);
};