@@ -4915,7 +4915,11 @@ merge(Compressor.prototype, {
|
|||||||
argname.mark_symbol(marker, scanner);
|
argname.mark_symbol(marker, scanner);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
walk_body(node, tw);
|
if (node instanceof AST_Arrow && node.value) {
|
||||||
|
node.value.walk(tw);
|
||||||
|
} else {
|
||||||
|
walk_body(node, tw);
|
||||||
|
}
|
||||||
pop();
|
pop();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -465,3 +465,28 @@ issue_4390: {
|
|||||||
]
|
]
|
||||||
node_version: ">=4"
|
node_version: ">=4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4401: {
|
||||||
|
options = {
|
||||||
|
merge_vars: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
(function() {
|
||||||
|
var a = (b => b(a))(console.log || a);
|
||||||
|
var c = console.log;
|
||||||
|
c && c(typeof b);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
(function() {
|
||||||
|
var a = (b => b(a))(console.log || a);
|
||||||
|
var c = console.log;
|
||||||
|
c && c(typeof b);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
expect_stdout: [
|
||||||
|
"undefined",
|
||||||
|
"undefined",
|
||||||
|
]
|
||||||
|
node_version: ">=4"
|
||||||
|
}
|
||||||
|
|||||||
@@ -1011,7 +1011,7 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) {
|
|||||||
suffix = "})";
|
suffix = "})";
|
||||||
} else {
|
} else {
|
||||||
s.push("((" + params + ") => ");
|
s.push("((" + params + ") => ");
|
||||||
switch (rng(4)) {
|
switch (rng(10)) {
|
||||||
case 0:
|
case 0:
|
||||||
s.push('(typeof arguments != "undefined" && arguments && arguments[' + rng(3) + "])");
|
s.push('(typeof arguments != "undefined" && arguments && arguments[' + rng(3) + "])");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user