aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-281.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-11-11 05:59:35 +0800
committerGitHub <noreply@github.com>2017-11-11 05:59:35 +0800
commit3c740473686178c242f66d3ad330e1b047335b5f (patch)
tree0ee897d27731ae245c07deeddb06d183f342b976 /test/compress/issue-281.js
parent94525d859f5db559366f96b646aca84438b0f982 (diff)
downloadtracifyjs-3c740473686178c242f66d3ad330e1b047335b5f.tar.gz
tracifyjs-3c740473686178c242f66d3ad330e1b047335b5f.zip
implement compress option `reduce_funcs` (#2466)
- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464
Diffstat (limited to 'test/compress/issue-281.js')
-rw-r--r--test/compress/issue-281.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/compress/issue-281.js b/test/compress/issue-281.js
index 65871a84..6a93136f 100644
--- a/test/compress/issue-281.js
+++ b/test/compress/issue-281.js
@@ -3,6 +3,7 @@ collapse_vars_constants: {
collapse_vars: true,
evaluate: true,
inline: true,
+ reduce_funcs: true,
reduce_vars: true,
unused: true,
}
@@ -240,6 +241,7 @@ negate_iife_issue_1073: {
evaluate: true,
inline: true,
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
sequences: true,
unused: true,
@@ -267,6 +269,7 @@ issue_1288_side_effects: {
evaluate: true,
inline: true,
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
side_effects: true,
unused: true,
@@ -299,6 +302,7 @@ inner_var_for_in_1: {
options = {
evaluate: true,
inline: true,
+ reduce_funcs: true,
reduce_vars: true,
}
input: {
@@ -330,6 +334,7 @@ issue_1595_3: {
evaluate: true,
inline: true,
passes: 2,
+ reduce_funcs: true,
reduce_vars: true,
unused: true,
}