improve `ufuzz` detection of suspicious options (#3860)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 8 May 2020 07:03:48 +0000 (08:03 +0100)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 07:03:48 +0000 (15:03 +0800)
test/ufuzz/index.js

index 9ccbef1..6e02d83 100644 (file)
@@ -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;