From 4e7744af2d3ed1f2557df5614f87a1eb117f9521 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 23 Nov 2022 01:26:35 +0200 Subject: [PATCH] minor lints (#5744) --- test/reduce.js | 1 + test/ufuzz/index.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/reduce.js b/test/reduce.js index d415e71f..ba953ca0 100644 --- a/test/reduce.js +++ b/test/reduce.js @@ -621,6 +621,7 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options) var beautified = U.minify(testcase, { compress: false, mangle: false, + module: minify_options.module, output: function() { var options = JSON.parse(JSON.stringify(print_options)); options.beautify = true; diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 52a8f3ba..cc9d2066 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -2139,7 +2139,7 @@ function errorln(msg) { function try_beautify(code, toplevel, result, printfn, options) { var o = JSON.parse(beautify_options); - if (async && has_await) o.module = true; + o.module = !!(async && has_await); var beautified = UglifyJS.minify(code, o); if (beautified.error) { printfn("// !!! beautify failed !!!"); @@ -2494,7 +2494,6 @@ function patch_try_catch(orig, toplevel) { var beautify_options = { compress: false, mangle: false, - module: false, output: { beautify: true, braces: true,