@@ -738,8 +738,7 @@ merge(Compressor.prototype, {
|
|||||||
var value = iife.args[i];
|
var value = iife.args[i];
|
||||||
d.fixed = function() {
|
d.fixed = function() {
|
||||||
var j = fn.argnames.indexOf(arg);
|
var j = fn.argnames.indexOf(arg);
|
||||||
if (j < 0) return value;
|
return (j < 0 ? value : iife.args[j]) || make_node(AST_Undefined, iife);
|
||||||
return iife.args[j] || make_node(AST_Undefined, iife);
|
|
||||||
};
|
};
|
||||||
tw.loop_ids[d.id] = tw.in_loop;
|
tw.loop_ids[d.id] = tw.in_loop;
|
||||||
mark(tw, d, true);
|
mark(tw, d, true);
|
||||||
|
|||||||
@@ -7095,3 +7095,30 @@ issue_3894: {
|
|||||||
}
|
}
|
||||||
expect_stdout: "PASS"
|
expect_stdout: "PASS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_3922: {
|
||||||
|
options = {
|
||||||
|
evaluate: true,
|
||||||
|
keep_fargs: "strict",
|
||||||
|
pure_getters: "strict",
|
||||||
|
reduce_vars: true,
|
||||||
|
side_effects: true,
|
||||||
|
unused: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
(function(a) {
|
||||||
|
var b;
|
||||||
|
b && b[c];
|
||||||
|
a |= this;
|
||||||
|
console.log("PASS");
|
||||||
|
var c = a.undefined;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
(function() {
|
||||||
|
0;
|
||||||
|
console.log("PASS");
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user