aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/index.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-11 00:32:21 +0100
committerGitHub <noreply@github.com>2020-05-11 07:32:21 +0800
commit35cc5aa06fd05437b6fa538ca3f32a876156d4da (patch)
tree1769ed87143f2da098dacfa7c8f369fa390a6461 /test/ufuzz/index.js
parentc1dd49e07550c3c4599dab6570ff8291f5722b59 (diff)
downloadtracifyjs-35cc5aa06fd05437b6fa538ca3f32a876156d4da.tar.gz
tracifyjs-35cc5aa06fd05437b6fa538ca3f32a876156d4da.zip
extend `--reduce-test` to cover `minify()` bugs (#3876)
Diffstat (limited to 'test/ufuzz/index.js')
-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 616378cf..f8c6555c 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -1181,8 +1181,8 @@ for (var round = 1; round <= num_iterations; round++) {
}
}
} else {
- uglify_code = uglify_result = uglify_code.error;
- ok = sandbox.same_stdout(original_result, uglify_result);
+ uglify_code = uglify_code.error;
+ ok = errored && uglify_code.name == original_result.name;
}
if (verbose || (verbose_interval && !(round % INTERVAL_COUNT)) || !ok) log(options);
else if (errored) {