fix corner case in unused (#5847)

fixes #5843
This commit is contained in:
Alex Lam S.L
2024-06-17 04:36:02 +03:00
committed by GitHub
parent 8dc99fa25f
commit 87c9edbbc7
5 changed files with 61 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ hoist_exports_2: {
}
}
expect: {
let e, a = 42["foo"];
let e, a = 42..foo;
function f(t, { [e]: o }) {
t(o, f);
}