fix(javascript): trace boundary results to assigned bindings (#7912)

This commit is contained in:
morluto authored and GitHub committed 2026-10-29 07:58:57 +08:00
1 parent 2129c17925
commit 794907fa3d
5 files changed
+166 -1

No files matched your search

@@ -57,7 +57,7 @@ export const assignedSemanticResultBindings = (
if (t.isVariableDeclarator(owner)) {
pattern = owner.id;
source = owner.init ?? null;
} else if (t.isAssignmentExpression(owner)) {
} else if (t.isAssignmentExpression(owner, { operator: "=" })) {
pattern = owner.left;
source = owner.right;
}