diff options
author | Ville Lautanala <lautis@gmail.com> | 2015-05-23 01:46:08 +0300 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2015-09-14 19:38:45 +0200 |
commit | 5fd12451f90eb6ae8f009da41197ad5da9e0fee8 (patch) | |
tree | db5a7ded18fb8b74b70176ffb2365bce0908b95e /test/compress | |
parent | ba939ccd6ce239a68c3c1c975075f85e78de7673 (diff) | |
download | tracifyjs-5fd12451f90eb6ae8f009da41197ad5da9e0fee8.tar.gz tracifyjs-5fd12451f90eb6ae8f009da41197ad5da9e0fee8.zip |
Control keeping function arguments with a single option
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/drop-unused.js | 6 |
1 files changed, 3 insertions, 3 deletions
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) {}; } } } |