Skip to content

JS: Fix missing flow into rest pattern lvalue #19283

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Apr 11, 2025

We were missing a value step from one of the internal nodes in a ...rest pattern that would allow flow to react the corresponding SSA node. This manifested in getALocalSource not working. As far as I can tell, data flow still worked, though.

@github-actions github-actions bot added the JS label Apr 11, 2025
node1.getLocation().getStartLine() = node2.getLocation().getStartLine()
}

query predicate getALocalSource(DataFlow::Node node, string name) {

Check warning

Code scanning / CodeQL

Predicates starting with "get" or "as" should return a value Warning test

This predicate starts with 'get' but does not return a value.
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Apr 11, 2025
@asgerf asgerf marked this pull request as ready for review April 11, 2025 13:17
@asgerf asgerf requested a review from a team as a code owner April 11, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant