@@ -3430,7 +3430,7 @@ merge(Compressor.prototype, {
|
||||
var v = e._eval(compressor, ignore_side_effects, cached, depth + 1);
|
||||
if (v === e) return this;
|
||||
modified(e);
|
||||
return v;
|
||||
return +v;
|
||||
});
|
||||
var non_converting_binary = makePredicate("&& || === !==");
|
||||
def(AST_Binary, function(compressor, ignore_side_effects, cached, depth) {
|
||||
|
||||
@@ -2654,3 +2654,18 @@ issue_3933: {
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
}
|
||||
|
||||
issue_3935: {
|
||||
options = {
|
||||
evaluate: true,
|
||||
}
|
||||
input: {
|
||||
console.log(function f(a) {
|
||||
return a++;
|
||||
}());
|
||||
}
|
||||
expect: {
|
||||
console.log(NaN);
|
||||
}
|
||||
expect_stdout: "NaN"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user