diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-04-24 23:49:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 06:49:50 +0800 |
commit | 94f33570e349f6c0daedd12c9185761dce88fa2e (patch) | |
tree | 6c9fff7698b52e95dee4315811da1b7eb41c4b5d /bin | |
parent | 44d6912a55fecc63ab4f0a8eb28653268556851a (diff) | |
download | tracifyjs-94f33570e349f6c0daedd12c9185761dce88fa2e.tar.gz tracifyjs-94f33570e349f6c0daedd12c9185761dce88fa2e.zip |
fix corner case in `--reduce-test` (#3819)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 2b02df03..e5124b06 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -237,7 +237,10 @@ function run() { // load on demand - assumes dev tree checked out var reduce_test = require("../test/reduce"); var testcase = files[0] || files[Object.keys(files)[0]]; - var result = reduce_test(testcase, options, {verbose: true}); + var result = reduce_test(testcase, options, { + log: print_error, + verbose: true, + }); } else { var result = UglifyJS.minify(files, options); |