fix corner case in ufuzz (#3538)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 28 Oct 2019 08:04:07 +0000 (16:04 +0800)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2019 08:04:07 +0000 (16:04 +0800)
test/ufuzz/index.js

index e6ee3fd..51e79ed 100644 (file)
@@ -1060,7 +1060,7 @@ function log(options) {
     errorln("//=============================================================");
     if (!ok) errorln("// !!!!!! Failed... round " + round);
     errorln("// original code");
-    try_beautify(orig_code(options.compress.unsafe_math), options.toplevel, original_result, errorln);
+    try_beautify(orig_code(options.compress && options.compress.unsafe_math), options.toplevel, original_result, errorln);
     errorln();
     errorln();
     errorln("//-------------------------------------------------------------");