enhance awaits (#4971)

This commit is contained in:
Alex Lam S.L
2021-05-28 01:47:37 +01:00
committed by GitHub
parent 749a828fc5
commit 8cd95dd263
3 changed files with 117 additions and 39 deletions

View File

@@ -6208,3 +6208,23 @@ reduce_cross_reference_4_toplevel: {
expect: {}
expect_stdout: true
}
recursive_collapse: {
options = {
collapse_vars: true,
reduce_vars: true,
}
input: {
console.log(function f(a) {
var b = a && f();
return b;
}("FAIL") || "PASS");
}
expect: {
console.log(function f(a) {
var b;
return a && f();
}("FAIL") || "PASS");
}
expect_stdout: "PASS"
}