@@ -1233,8 +1233,11 @@ issue_2105_2: {
|
||||
issue_2105_3: {
|
||||
options = {
|
||||
inline: true,
|
||||
passes: 2,
|
||||
join_vars: true,
|
||||
passes: 3,
|
||||
reduce_vars: true,
|
||||
side_effects: true,
|
||||
sequences: true,
|
||||
unused: true,
|
||||
}
|
||||
input: {
|
||||
@@ -1258,12 +1261,12 @@ issue_2105_3: {
|
||||
});
|
||||
}
|
||||
expect: {
|
||||
!void void {
|
||||
({
|
||||
prop: function() {
|
||||
console.log;
|
||||
void console.log("PASS");
|
||||
}
|
||||
}.prop();
|
||||
console.log,
|
||||
console.log("PASS");
|
||||
},
|
||||
}).prop();
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
}
|
||||
|
||||
@@ -6152,10 +6152,8 @@ issue_4265: {
|
||||
}
|
||||
expect: {
|
||||
function f() {
|
||||
return console, function() {
|
||||
console.log(a);
|
||||
var a;
|
||||
}(), 0;
|
||||
var a;
|
||||
return console, console.log(a), 0;
|
||||
}
|
||||
f();
|
||||
}
|
||||
@@ -8046,3 +8044,40 @@ issue_5290: {
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
}
|
||||
|
||||
issue_5296: {
|
||||
options = {
|
||||
inline: true,
|
||||
}
|
||||
input: {
|
||||
var a = "PASS";
|
||||
(function() {
|
||||
for (var i = 0; i < 2; i++)
|
||||
try {
|
||||
return function() {
|
||||
while (!console);
|
||||
var b = b && (a = b) || "FAIL";
|
||||
}();
|
||||
} finally {
|
||||
continue;
|
||||
}
|
||||
})();
|
||||
console.log(a);
|
||||
}
|
||||
expect: {
|
||||
var a = "PASS";
|
||||
(function() {
|
||||
for (var i = 0; i < 2; i++)
|
||||
try {
|
||||
b = void 0;
|
||||
while (!console);
|
||||
var b = b && (a = b) || "FAIL";
|
||||
return;
|
||||
} finally {
|
||||
continue;
|
||||
}
|
||||
})();
|
||||
console.log(a);
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
}
|
||||
|
||||
@@ -595,10 +595,10 @@ issue_3600_2: {
|
||||
expect: {
|
||||
var c = 0;
|
||||
(function() {
|
||||
if ([][c++]) {
|
||||
var b = --b;
|
||||
if ([][c++])
|
||||
b = --b,
|
||||
c = 42;
|
||||
}
|
||||
var b;
|
||||
})();
|
||||
console.log(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user