From 5fd12451f90eb6ae8f009da41197ad5da9e0fee8 Mon Sep 17 00:00:00 2001 From: Ville Lautanala Date: Sat, 23 May 2015 01:46:08 +0300 Subject: Control keeping function arguments with a single option --- test/compress/drop-unused.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/compress') diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index c1cf5c3c..035a428e 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -1,5 +1,5 @@ unused_funarg_1: { - options = { unused: true, unsafe: true }; + options = { unused: true, keep_fargs: false }; input: { function f(a, b, c, d, e) { return a + b; @@ -13,7 +13,7 @@ unused_funarg_1: { } unused_funarg_2: { - options = { unused: true, unsafe: true }; + options = { unused: true, keep_fargs: false }; input: { function f(a, b, c, d, e) { return a + c; @@ -173,7 +173,7 @@ keep_fnames: { } expect: { function foo() { - return function bar() {}; + return function bar(baz) {}; } } } -- cgit v1.2.3