diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-04-17 19:53:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 02:53:26 +0800 |
commit | da68ec6e190e8969741606b2b2a3eb2d327061ba (patch) | |
tree | 17aa71636bf7a44155e70626526ecfb980f830c3 /test/ufuzz | |
parent | 15a3ebd467ea1f88b55affb0c3cc2d218fad3718 (diff) | |
download | tracifyjs-da68ec6e190e8969741606b2b2a3eb2d327061ba.tar.gz tracifyjs-da68ec6e190e8969741606b2b2a3eb2d327061ba.zip |
fix corner cases in `join_vars` (#3790)
fixes #3789
fixes #3791
Diffstat (limited to 'test/ufuzz')
-rw-r--r-- | test/ufuzz/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 24bf86d1..ec2a442c 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -1156,7 +1156,7 @@ for (var round = 1; round <= num_iterations; round++) { uglify_code = uglify_code.code; uglify_result = sandbox.run_code(uglify_code, toplevel); ok = sandbox.same_stdout(original_result, uglify_result); - if (!ok && typeof uglify_result == "string" && o.compress.unsafe_math) { + if (!ok && typeof uglify_result == "string" && o.compress && o.compress.unsafe_math) { ok = fuzzy_match(original_result, uglify_result); if (!ok) { var fuzzy_result = sandbox.run_code(original_code.replace(/( - 0\.1){3}/g, " - 0.3"), toplevel); |