From 35cc5aa06fd05437b6fa538ca3f32a876156d4da Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 11 May 2020 00:32:21 +0100 Subject: extend `--reduce-test` to cover `minify()` bugs (#3876) --- test/ufuzz/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ufuzz') 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) { -- cgit v1.2.3