fix corner case in inline (#4418)

fixes #4417
This commit is contained in:
Alex Lam S.L
2020-12-19 17:24:29 +00:00
committed by GitHub
parent acc2d7d845
commit 882968c68c
3 changed files with 49 additions and 15 deletions

View File

@@ -597,3 +597,25 @@ issue_4406: {
expect_stdout: "PASS"
node_version: ">=8"
}
issue_4417: {
options = {
inline: true,
}
input: {
(async function() {
console.log(function() {
return await => 0;
}().prototype);
})();
}
expect: {
(async function() {
console.log(function() {
return await => 0;
}().prototype);
})();
}
expect_stdout: "undefined"
node_version: ">=8"
}