scope.inlined = true;
} while (scope = scope.parent_scope);
}
+ } else if (compressor.option("ie8") && fixed.name && def !== fixed.name.definition()) {
+ single_use = false;
}
if (single_use) fixed.parent_scope = self.scope;
} else if (!fixed || !fixed.is_constant_expression()) {
}
expect_stdout: "undefined"
}
+
+issue_3918: {
+ options = {
+ conditionals: true,
+ ie8: true,
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ mangle = {
+ ie8: true,
+ }
+ input: {
+ if (console.log("PASS")) {
+ var a = function f() {
+ f.p;
+ try {
+ console.log("FAIL");
+ } catch (e) {}
+ }, b = a;
+ }
+ }
+ expect: {
+ var a;
+ console.log("PASS") && (a = function f() {
+ f.p;
+ try {
+ console.log("FAIL");
+ } catch (o) {}
+ }, a);
+ }
+ expect_stdout: "PASS"
+}