aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.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/properties.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/properties.js')
-rw-r--r--test/compress/properties.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index ab202525..f2e59321 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -833,6 +833,7 @@ lhs_prop_2: {
evaluate: true,
inline: true,
properties: true,
+ reduce_funcs: true,
reduce_vars: true,
side_effects: true,
unused: true,
@@ -879,6 +880,7 @@ prop_side_effects_1: {
evaluate: true,
inline: true,
properties: true,
+ reduce_funcs: true,
reduce_vars: true,
side_effects: true,
toplevel: true,
@@ -915,6 +917,7 @@ prop_side_effects_2: {
inline: true,
passes: 2,
properties: true,
+ reduce_funcs: true,
reduce_vars: true,
side_effects: true,
toplevel: true,