From 24c3db11e66319b027f9970dc4dfacb69f7bbbe3 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 22 Nov 2022 23:08:42 +0200 Subject: [PATCH] minor lints (#5740) --- lib/compress.js | 2 +- test/ufuzz/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compress.js b/lib/compress.js index a3a930f2..f426cf02 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6559,7 +6559,7 @@ Compressor.prototype.compress = function(node) { }); return true; } - if (node instanceof AST_SymbolConst || node instanceof AST_SymbolLet) { + if (node instanceof AST_SymbolDeclaration) { references[node.definition().id] = false; return true; } diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 9c676c95..52a8f3ba 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -2494,6 +2494,7 @@ function patch_try_catch(orig, toplevel) { var beautify_options = { compress: false, mangle: false, + module: false, output: { beautify: true, braces: true,