Skip to content

Commit e9fe48b

Browse files
committed
JS: Also forceLocal getAPromisifiedInvocation
1 parent 6c20d52 commit e9fe48b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,9 @@ module API {
15371537

15381538
predicate edge(TApiNode pred, Label::ApiLabel lbl, TApiNode succ) =
15391539
forceLocal(Stage1::edge/3)(pred, lbl, succ)
1540+
1541+
DataFlow::InvokeNode getAPromisifiedInvocation(TApiNode callee, int bound, TApiNode succ) =
1542+
forceLocal(Stage1::getAPromisifiedInvocation/3)(callee, bound, succ, result)
15401543
}
15411544

15421545
private module Stage2Input implements StageInputSig {
@@ -1624,7 +1627,9 @@ module API {
16241627

16251628
cached
16261629
DataFlow::InvokeNode getAPromisifiedInvocation(TApiNode callee, int bound, TApiNode succ) {
1627-
result = Stage1::getAPromisifiedInvocation(callee, bound, succ)
1630+
result = Stage1Local::getAPromisifiedInvocation(callee, bound, succ)
1631+
or
1632+
result = Stage2::getAPromisifiedInvocation(callee, bound, succ)
16281633
}
16291634
}
16301635

0 commit comments

Comments
 (0)