mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: Add spread step when bactracking in API graphs
This commit is contained in:
@@ -750,6 +750,18 @@ module API {
|
||||
)
|
||||
)
|
||||
or
|
||||
exists(ObjectExpr obj |
|
||||
obj = trackDefNode(nd, t.continue()).asExpr() and
|
||||
result =
|
||||
obj.getAProperty()
|
||||
.(SpreadProperty)
|
||||
.getInit()
|
||||
.(SpreadElement)
|
||||
.getOperand()
|
||||
.flow()
|
||||
.getALocalSource()
|
||||
)
|
||||
or
|
||||
t = defStep(nd, result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user