var elements = [];
for (var i = 0, len = this.elements.length; i < len; i++) {
var element = this.elements[i];
- if (element instanceof AST_Function) continue;
+ if (element instanceof AST_Function) {
+ elements.push(element);
+ continue;
+ }
var value = element._eval(compressor, depth);
if (element === value) return this;
elements.push(value);
"WARN: Condition left of || always true [test/compress/evaluate.js:1341,20]",
]
}
+
+issue_2822: {
+ options = {
+ evaluate: true,
+ unsafe: true,
+ }
+ input: {
+ console.log([ function() {}, "PASS", "FAIL" ][1]);
+ }
+ expect: {
+ console.log("PASS");
+ }
+ expect_stdout: "PASS"
+}