mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Make local flow not depend on SourceNode
This commit is contained in:
@@ -1369,18 +1369,18 @@ module DataFlow {
|
||||
*/
|
||||
private predicate lvalueDefaultFlowStep(Node pred, Node succ) {
|
||||
exists(PropertyPattern pattern |
|
||||
pred = valueNode(pattern.getDefault()) and
|
||||
pred = TValueNode(pattern.getDefault()) and
|
||||
succ = lvalueNode(pattern.getValuePattern())
|
||||
)
|
||||
or
|
||||
exists(ArrayPattern array, int i |
|
||||
pred = valueNode(array.getDefault(i)) and
|
||||
pred = TValueNode(array.getDefault(i)) and
|
||||
succ = lvalueNode(array.getElement(i))
|
||||
)
|
||||
or
|
||||
exists(Parameter param |
|
||||
pred = valueNode(param.getDefault()) and
|
||||
succ = parameterNode(param)
|
||||
pred = TValueNode(param.getDefault()) and
|
||||
parameterNode(succ, param)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user