diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-01-24 14:15:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 22:15:43 +0800 |
commit | fd7ad8e7792749c29dec2038bb6cc61cbb7721f1 (patch) | |
tree | 0f920c62e94e9cab93535cbfe6e3648e77ff7b0a /test/compress/collapse_vars.js | |
parent | a36c5472d2cf9f79ca5245e9299a011ec7e4cef1 (diff) | |
download | tracifyjs-fd7ad8e7792749c29dec2038bb6cc61cbb7721f1.tar.gz tracifyjs-fd7ad8e7792749c29dec2038bb6cc61cbb7721f1.zip |
fix corner cases in `collapse_vars` (#4591)
fixes #4590
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r-- | test/compress/collapse_vars.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 963906c5..04df8e11 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -5608,6 +5608,7 @@ collapse_rhs_array: { collapse_rhs_boolean_1: { options = { collapse_vars: true, + evaluate: true, } input: { var a, b; @@ -5633,6 +5634,7 @@ collapse_rhs_boolean_1: { collapse_rhs_boolean_2: { options = { collapse_vars: true, + evaluate: true, } input: { var a; @@ -5667,6 +5669,7 @@ collapse_rhs_boolean_3: { booleans: true, collapse_vars: true, conditionals: true, + evaluate: true, } input: { var a, f, g, h, i, n, s, t, x, y; @@ -5720,6 +5723,7 @@ collapse_rhs_function: { collapse_rhs_number: { options = { collapse_vars: true, + evaluate: true, } input: { var a, b; @@ -5799,6 +5803,7 @@ collapse_rhs_regexp: { collapse_rhs_string: { options = { collapse_vars: true, + evaluate: true, } input: { var a, b; |