Skip to content

Commit 8679132

Browse files
committed
copy data from both callbacks in Promise data-flow
1 parent fe0b6a8 commit 8679132

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private module PromiseFlow {
230230
or
231231
// read the value of a resolved/rejected promise that is returned
232232
(prop = rejectField() or prop = resolveField()) and
233-
pred = getCallback(0).getAReturn() and
233+
pred = getCallback([0..1]).getAReturn() and
234234
succ = this
235235
}
236236

0 commit comments

Comments
 (0)