Files
UglifyJS/test/compress/issue-751.js
2018-07-01 14:34:42 +08:00

30 lines
557 B
JavaScript

negate_booleans_1: {
options = {
comparisons: true,
}
input: {
var a = !a || !b || !c || !d || !e || !f;
}
expect: {
var a = !(a && b && c && d && e && f);
}
}
negate_booleans_2: {
options = {
comparisons: true,
}
input: {
var match = !x && // should not touch this one
(!z || c) &&
(!k || d) &&
the_stuff();
}
expect: {
var match = !x &&
(!z || c) &&
(!k || d) &&
the_stuff();
}
}