enhance inline & module (#5475)

This commit is contained in:
Alex Lam S.L
2022-05-27 04:57:05 +01:00
committed by GitHub
parent 94aae05d45
commit 2152f00de2
2 changed files with 30 additions and 6 deletions

View File

@@ -8623,3 +8623,26 @@ mixed_mode_inline_4_strict: {
}
expect_stdout: "PASS"
}
module_inline: {
options = {
inline: true,
module: true,
reduce_vars: true,
}
input: {
var a = f;
function f() {
return a;
}
console.log(f() === a);
}
expect: {
var a = f;
function f() {
return a;
}
console.log(a === a);
}
expect_stdout: "true"
}