Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic: AssignmentTargetPropertyIdentifier after AssignmentTargetPropertyProperty is analyzer as Read instead of Write #5801

Open
KermanX opened this issue Sep 16, 2024 · 0 comments
Assignees
Labels
C-bug Category - Bug

Comments

@KermanX
Copy link

KermanX commented Sep 16, 2024

Playground link

In the "Symbols" panel, the y variable should be analyzed as ”Write", "Write" instead of "Write", "Read".

Note that this only happens when there is an AssignmentTargetPropertyProperty before AssignmentTargetPropertyIdentifier:

let x, y;
({y} = 1); // OK
({x, y} = 1); // OK
({1: x, y} = 1); // BUG
[x, y] = 1; // OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

2 participants