enhance conditionals, if_return & side_effects (#5348)

This commit is contained in:
Alex Lam S.L
2022-02-12 15:18:07 +00:00
committed by GitHub
parent 6d0bb58d68
commit a14555a39e
11 changed files with 162 additions and 164 deletions

View File

@@ -7981,6 +7981,7 @@ issue_5264_2: {
issue_5283: {
options = {
conditionals: true,
if_return: true,
inline: true,
pure_getters: "strict",
@@ -8005,11 +8006,10 @@ issue_5283: {
var a = "FAIL 1";
(function() {
a = "PASS";
if (!console)
(function(a) {
console.log("FAIL 2");
a.p;
})();
console || function(a) {
console.log("FAIL 2");
a.p;
}();
})();
console.log(a);
}