var fixed = this.fixed_value();
if (!fixed) return true;
this._dot_throw = return_true;
- var result = fixed._dot_throw(compressor);
- delete this._dot_throw;
- return result;
+ if (fixed._dot_throw(compressor)) {
+ delete this._dot_throw;
+ return true;
+ }
+ this._dot_throw = return_false;
+ return false;
});
def(AST_UnaryPrefix, function() {
return this.operator == "void";
}
expect_stdout: "undefined"
}
+
+issue_4133: {
+ options = {
+ evaluate: true,
+ merge_vars: true,
+ pure_getters: "strict",
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ input: {
+ var a = 1;
+ var b = [ a-- ], c = b && b[c];
+ console.log(a);
+ }
+ expect: {
+ var b = 1;
+ console.log(0);
+ }
+ expect_stdout: "0"
+}