Skip to content

Commit 22b6185

Browse files
committed
JS: Add modeling for thenify-all
1 parent d6a14e6 commit 22b6185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/Promises.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,8 @@ module Promisify {
728728
this =
729729
[
730730
DataFlow::moduleMember("bluebird", "promisifyAll"),
731-
DataFlow::moduleImport(["util-promisifyall", "pify"])
731+
DataFlow::moduleMember("thenify-all", "withCallback"),
732+
DataFlow::moduleImport(["util-promisifyall", "pify", "thenify-all"])
732733
].getACall()
733734
}
734735
}

0 commit comments

Comments
 (0)