aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-979.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/issue-979.js
parent6aa750010f23acdc24078a5d7e66cef009cbf570 (diff)
downloadtracifyjs-5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc.tar.gz
tracifyjs-5ffc17d4aa36c40a4d5ebe558edbc734b45ca1dc.zip
fix corner case in `unused`
Diffstat (limited to 'test/compress/issue-979.js')
-rw-r--r--test/compress/issue-979.js34
1 files changed, 28 insertions, 6 deletions
diff --git a/test/compress/issue-979.js b/test/compress/issue-979.js
index b2500126..8f017602 100644
--- a/test/compress/issue-979.js
+++ b/test/compress/issue-979.js
@@ -1,8 +1,19 @@
issue979_reported: {
options = {
- sequences:true, properties:true, dead_code:true, conditionals:true,
- comparisons:true, evaluate:true, booleans:true, loops:true, unused:true, hoist_funs:true,
- keep_fargs:true, if_return:true, join_vars:true, side_effects:true
+ booleans: true,
+ comparisons: true,
+ conditionals: true,
+ dead_code: true,
+ evaluate: true,
+ hoist_funs: true,
+ if_return: true,
+ join_vars: true,
+ keep_fargs: true,
+ loops: true,
+ properties: true,
+ sequences: true,
+ side_effects: true,
+ unused: true,
}
input: {
function f1() {
@@ -30,9 +41,20 @@ issue979_reported: {
issue979_test_negated_is_best: {
options = {
- sequences:true, properties:true, dead_code:true, conditionals:true,
- comparisons:true, evaluate:true, booleans:true, loops:true, unused:true, hoist_funs:true,
- keep_fargs:true, if_return:true, join_vars:true, side_effects:true
+ booleans: true,
+ comparisons: true,
+ conditionals: true,
+ dead_code: true,
+ evaluate: true,
+ hoist_funs: true,
+ if_return: true,
+ join_vars: true,
+ keep_fargs: true,
+ loops: true,
+ properties: true,
+ sequences: true,
+ side_effects: true,
+ unused: true,
}
input: {
function f3() {