fix corner case in inline (#4818)

fixes #4817
This commit is contained in:
Alex Lam S.L
2021-03-23 14:33:24 +00:00
committed by GitHub
parent e7be38b42a
commit 78e3936cd4
2 changed files with 21 additions and 1 deletions

View File

@@ -1661,3 +1661,23 @@ issue_4588_2_evaluate: {
expect_stdout: "1"
node_version: ">=6"
}
issue_4817: {
options = {
ie8: true,
inline: true,
unused: true,
}
input: {
(function f(a = console.log(typeof f)) {
return 42;
})();
}
expect: {
(function f(a = console.log(typeof f)) {
return 42;
})();
}
expect_stdout: "function"
node_version: ">=6"
}