fix corner case in hoist_funs (#4790)

This commit is contained in:
Alex Lam S.L
2021-03-16 17:48:23 +00:00
committed by GitHub
parent 9a9543013c
commit b872ffee01
2 changed files with 23 additions and 11 deletions

View File

@@ -399,6 +399,17 @@ single_use_class_default: {
}
}
hoist_funs: {
options = {
hoist_funs: true,
}
input: {
export function f() {}
export default async function* g() {}
}
expect_exact: "export function f(){}export default async function*g(){}"
}
issue_4742_join_vars_1: {
options = {
join_vars: true,