aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-26 17:59:26 +0100
committerGitHub <noreply@github.com>2020-04-27 00:59:26 +0800
commit36dcfa3e821de8c0569284aeea13abd001e195eb (patch)
treee334ce9ae0e6b6a3d4c04f7c41ccd29f989022a1
parent94f33570e349f6c0daedd12c9185761dce88fa2e (diff)
downloadtracifyjs-36dcfa3e821de8c0569284aeea13abd001e195eb.tar.gz
tracifyjs-36dcfa3e821de8c0569284aeea13abd001e195eb.zip
improve suspicious option detection (#3820)
-rw-r--r--test/ufuzz/index.js4
1 files changed, 2 insertions, 2 deletions
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) {