loops : !false_by_default,
unused : !false_by_default,
hoist_funs : !false_by_default,
- keep_fargs : false,
+ keep_fargs : true,
keep_fnames : false,
hoist_vars : false,
if_return : !false_by_default,
var tt = new TreeTransformer(
function before(node, descend, in_list) {
if (node instanceof AST_Lambda && !(node instanceof AST_Accessor)) {
- if (compressor.option("unsafe") && !compressor.option("keep_fargs")) {
+ if (!compressor.option("keep_fargs")) {
for (var a = node.argnames, i = a.length; --i >= 0;) {
var sym = a[i];
if (sym.unreferenced()) {
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;
}
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;
}
expect: {
function foo() {
- return function bar() {};
+ return function bar(baz) {};
}
}
}