aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1833.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-1833.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-1833.js')
-rw-r--r--test/compress/issue-1833.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/compress/issue-1833.js b/test/compress/issue-1833.js
index e46dd046..4ffa9d5c 100644
--- a/test/compress/issue-1833.js
+++ b/test/compress/issue-1833.js
@@ -1,6 +1,7 @@
iife_for: {
options = {
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
toplevel: true,
unused: true,
@@ -26,6 +27,7 @@ iife_for: {
iife_for_in: {
options = {
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
toplevel: true,
unused: true,
@@ -51,6 +53,7 @@ iife_for_in: {
iife_do: {
options = {
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
toplevel: true,
unused: true,
@@ -80,6 +83,7 @@ iife_do: {
iife_while: {
options = {
negate_iife: true,
+ reduce_funcs: true,
reduce_vars: true,
toplevel: true,
unused: true,