aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-08 08:03:48 +0100
committerGitHub <noreply@github.com>2020-05-08 15:03:48 +0800
commit1bb0804d60cabbe048b05735dd2322dcc6d7bedd (patch)
tree651dfa226b100520169138ca672741e950ff4662 /test/ufuzz
parent998245ffd6fcd56129d99a3829aa845fe1faa0d2 (diff)
downloadtracifyjs-1bb0804d60cabbe048b05735dd2322dcc6d7bedd.tar.gz
tracifyjs-1bb0804d60cabbe048b05735dd2322dcc6d7bedd.zip
improve `ufuzz` detection of suspicious options (#3860)
Diffstat (limited to 'test/ufuzz')
-rw-r--r--test/ufuzz/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js
index 9ccbef1f..6e02d83c 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -1020,7 +1020,7 @@ function log_suspects(minify_options, component) {
var defs = default_options[component];
var suspects = Object.keys(defs).filter(function(name) {
var flip = name == "keep_fargs";
- if (flip === !(name in options ? options : defs)[name]) {
+ if (flip !== (name in options ? options : defs)[name]) {
var m = JSON.parse(JSON.stringify(minify_options));
var o = JSON.parse(JSON.stringify(options));
o[name] = flip;