aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authoralexlamsl <alexlamsl@gmail.com>2018-07-01 14:34:42 +0800
committeralexlamsl <alexlamsl@gmail.com>2018-07-01 14:34:42 +0800
commit5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc (patch)
tree12f66c5bbd9b93a5f468cfad7349acea0900df28 /test/compress/functions.js
parent6aa750010f23acdc24078a5d7e66cef009cbf570 (diff)
downloadtracifyjs-5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc.tar.gz
tracifyjs-5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc.zip
fix corner case in `unused`
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index ec0b72a7..cff81e2d 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -9,20 +9,20 @@ non_ascii_function_identifier_name: {
iifes_returning_constants_keep_fargs_true: {
options = {
- keep_fargs : true,
- side_effects : true,
- evaluate : true,
- unused : true,
- dead_code : true,
- conditionals : true,
- comparisons : true,
- booleans : true,
- if_return : true,
- join_vars : true,
- reduce_funcs : true,
- reduce_vars : true,
- collapse_vars : true,
- inline : true,
+ booleans: true,
+ collapse_vars: true,
+ comparisons: true,
+ conditionals: true,
+ dead_code: true,
+ evaluate: true,
+ if_return: true,
+ inline: true,
+ join_vars: true,
+ keep_fargs: true,
+ reduce_funcs: true,
+ reduce_vars: true,
+ side_effects: true,
+ unused: true,
}
input: {
(function(){ return -1.23; }());
@@ -46,20 +46,20 @@ iifes_returning_constants_keep_fargs_true: {
iifes_returning_constants_keep_fargs_false: {
options = {
- keep_fargs : false,
- side_effects : true,
- evaluate : true,
- unused : true,
- dead_code : true,
- conditionals : true,
- comparisons : true,
- booleans : true,
- if_return : true,
- join_vars : true,
- reduce_funcs : true,
- reduce_vars : true,
- collapse_vars : true,
- inline : true,
+ booleans: true,
+ collapse_vars: true,
+ comparisons: true,
+ conditionals: true,
+ dead_code: true,
+ evaluate: true,
+ if_return: true,
+ inline: true,
+ join_vars: true,
+ keep_fargs: false,
+ reduce_funcs: true,
+ reduce_vars: true,
+ side_effects: true,
+ unused: true,
}
input: {
(function(){ return -1.23; }());
@@ -1175,8 +1175,8 @@ issue_2620_3: {
issue_2620_4: {
rename = true,
options = {
- evaluate: true,
dead_code: true,
+ evaluate: true,
inline: true,
passes: 2,
reduce_vars: true,