Skip to content

Commit 93971e9

Browse files
committed
JS: Make local flow not depend on SourceNode
1 parent 346867f commit 93971e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,18 +1369,18 @@ module DataFlow {
13691369
*/
13701370
private predicate lvalueDefaultFlowStep(Node pred, Node succ) {
13711371
exists(PropertyPattern pattern |
1372-
pred = valueNode(pattern.getDefault()) and
1372+
pred = TValueNode(pattern.getDefault()) and
13731373
succ = lvalueNode(pattern.getValuePattern())
13741374
)
13751375
or
13761376
exists(ArrayPattern array, int i |
1377-
pred = valueNode(array.getDefault(i)) and
1377+
pred = TValueNode(array.getDefault(i)) and
13781378
succ = lvalueNode(array.getElement(i))
13791379
)
13801380
or
13811381
exists(Parameter param |
1382-
pred = valueNode(param.getDefault()) and
1383-
succ = parameterNode(param)
1382+
pred = TValueNode(param.getDefault()) and
1383+
parameterNode(succ, param)
13841384
)
13851385
}
13861386

0 commit comments

Comments
 (0)