fix issues uncovered by lgtm (#4749)

This commit is contained in:
Alex Lam S.L
2021-03-07 04:44:34 +00:00
committed by GitHub
parent 12babdfe20
commit 31e7d25cad
2 changed files with 37 additions and 32 deletions

View File

@@ -203,7 +203,23 @@ mangle_rename: {
}
}
hoist_exports: {
hoist_exports_1: {
options = {
hoist_exports: true,
}
input: {
export { a };
export var b;
export function f() {}
}
expect: {
var b;
function f() {}
export { a, b, f };
}
}
hoist_exports_2: {
options = {
evaluate: true,
hoist_exports: true,