tweak test cases (#5640)
This commit is contained in:
@@ -3082,6 +3082,7 @@ issue_5506: {
|
|||||||
|
|
||||||
issue_5528_1: {
|
issue_5528_1: {
|
||||||
options = {
|
options = {
|
||||||
|
awaits: true,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
@@ -3117,6 +3118,7 @@ issue_5528_1: {
|
|||||||
|
|
||||||
issue_5528_2: {
|
issue_5528_2: {
|
||||||
options = {
|
options = {
|
||||||
|
awaits: true,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
@@ -3152,6 +3154,7 @@ issue_5528_2: {
|
|||||||
|
|
||||||
issue_5528_3: {
|
issue_5528_3: {
|
||||||
options = {
|
options = {
|
||||||
|
awaits: true,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
@@ -3192,6 +3195,7 @@ issue_5528_3: {
|
|||||||
|
|
||||||
issue_5528_4: {
|
issue_5528_4: {
|
||||||
options = {
|
options = {
|
||||||
|
awaits: true,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
input: {
|
input: {
|
||||||
|
|||||||
@@ -10002,6 +10002,52 @@ issue_5568: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
issue_5638_1: {
|
issue_5638_1: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a;
|
||||||
|
console;
|
||||||
|
a = [ 42 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a++);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a;
|
||||||
|
console;
|
||||||
|
a = [ 42 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a++);
|
||||||
|
}
|
||||||
|
expect_stdout: "42"
|
||||||
|
}
|
||||||
|
|
||||||
|
issue_5638_2: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a;
|
||||||
|
console;
|
||||||
|
a = [ 6 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a *= 7);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a;
|
||||||
|
console;
|
||||||
|
a = [ 6 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a *= 7);
|
||||||
|
}
|
||||||
|
expect_stdout: "42"
|
||||||
|
}
|
||||||
|
|
||||||
|
issue_5638_3: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
pure_getters: "strict",
|
pure_getters: "strict",
|
||||||
@@ -10027,7 +10073,7 @@ issue_5638_1: {
|
|||||||
expect_stdout: "foo 42"
|
expect_stdout: "foo 42"
|
||||||
}
|
}
|
||||||
|
|
||||||
issue_5638_2: {
|
issue_5638_4: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
pure_getters: "strict",
|
pure_getters: "strict",
|
||||||
|
|||||||
@@ -703,6 +703,52 @@ issue_5626: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
issue_5638_1: {
|
issue_5638_1: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
hoist_vars: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a = "FAIL";
|
||||||
|
var a = [ 42 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a++);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a;
|
||||||
|
a = "FAIL";
|
||||||
|
a = [ 42 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a++);
|
||||||
|
}
|
||||||
|
expect_stdout: "42"
|
||||||
|
}
|
||||||
|
|
||||||
|
issue_5638_2: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
hoist_vars: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a = "FAIL";
|
||||||
|
var a = [ 6 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a *= 7);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a;
|
||||||
|
a = "FAIL";
|
||||||
|
a = [ 6 ];
|
||||||
|
console || FAIL(a);
|
||||||
|
console.log(a *= 7);
|
||||||
|
}
|
||||||
|
expect_stdout: "42"
|
||||||
|
}
|
||||||
|
|
||||||
|
issue_5638_3: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
hoist_vars: true,
|
hoist_vars: true,
|
||||||
@@ -729,7 +775,7 @@ issue_5638_1: {
|
|||||||
expect_stdout: "foo 42"
|
expect_stdout: "foo 42"
|
||||||
}
|
}
|
||||||
|
|
||||||
issue_5638_2: {
|
issue_5638_4: {
|
||||||
options = {
|
options = {
|
||||||
collapse_vars: true,
|
collapse_vars: true,
|
||||||
hoist_vars: true,
|
hoist_vars: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user