diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-05-19 22:11:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 05:11:39 +0800 |
commit | d6152e6a76908223cace651898e12a3b3c9a445d (patch) | |
tree | e208e034823e2fb26aada3949db6a3cd321c88dd /test/reduce.js | |
parent | d930c705f6064448c7e6cba8e0e9e8d46d5e3762 (diff) | |
download | tracifyjs-d6152e6a76908223cace651898e12a3b3c9a445d.tar.gz tracifyjs-d6152e6a76908223cace651898e12a3b3c9a445d.zip |
fix corner case in `collapse_vars` (#4946)
Diffstat (limited to 'test/reduce.js')
-rw-r--r-- | test/reduce.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reduce.js b/test/reduce.js index 3f154fa7..15f869e5 100644 --- a/test/reduce.js +++ b/test/reduce.js @@ -46,7 +46,7 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options) if (verbose) { log("// Node.js " + process.version + " on " + os.platform() + " " + os.arch()); } - if (differs.error && [ "DefaultsError", "SyntaxError" ].indexOf(differs.error.name) < 0) { + if (differs && differs.error && [ "DefaultsError", "SyntaxError" ].indexOf(differs.error.name) < 0) { test_for_diff = test_minify; differs = test_for_diff(testcase, minify_options, result_cache, max_timeout); } |