From: Alex Lam S.L Date: Sun, 26 Apr 2020 16:59:26 +0000 (+0100) Subject: improve suspicious option detection (#3820) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=36dcfa3e821de8c0569284aeea13abd001e195eb;p=UglifyJS.git improve suspicious option detection (#3820) --- diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 908fabd1..83823cee 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -1031,7 +1031,7 @@ function log_suspects(minify_options, component) { errorln(result.error); } else { var r = sandbox.run_code(result.code, sandbox.has_toplevel(m)); - return sandbox.same_stdout(original_result, r); + return !sandbox.same_stdout(uglify_result, r); } } }); @@ -1056,7 +1056,7 @@ function log_suspects_global(options) { errorln(result.error); } else { var r = sandbox.run_code(result.code, sandbox.has_toplevel(m)); - return sandbox.same_stdout(original_result, r); + return !sandbox.same_stdout(uglify_result, r); } }); if (suspects.length > 0) {