From 5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Sun, 1 Jul 2018 14:34:42 +0800 Subject: fix corner case in `unused` --- test/compress/functions.js | 58 +++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'test/compress/functions.js') 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, -- cgit v1.2.3