public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8e0e34
)
report options upon reminify input error (#2911)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Mon, 12 Feb 2018 23:29:39 +0000
(07:29 +0800)
committer
GitHub
<noreply@github.com>
Mon, 12 Feb 2018 23:29:39 +0000
(07:29 +0800)
test/run-tests.js
patch
|
blob
|
history
diff --git
a/test/run-tests.js
b/test/run-tests.js
index
5dcacd8
..
ae170e3
100755
(executable)
--- a/
test/run-tests.js
+++ b/
test/run-tests.js
@@
-372,8
+372,9
@@
function reminify(orig_options, input_code, input_formatted, expect_stdout) {
var options_formatted = JSON.stringify(options, null, 4);
var result = U.minify(input_code, options);
if (result.error) {
- log("!!! failed input reminify\n---INPUT---\n{input}\n--ERROR---\n{error}\n\n", {
+ log("!!! failed input reminify\n---INPUT---\n{input}\n--
-OPTIONS---\n{options}\n--
ERROR---\n{error}\n\n", {
input: input_formatted,
+ options: options_formatted,
error: result.error,
});
return false;