From 3c740473686178c242f66d3ad330e1b047335b5f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 11 Nov 2017 05:59:35 +0800 Subject: 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 --- test/compress/issue-1833.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/compress/issue-1833.js') 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, -- cgit v1.2.3