Skip to content

Commit 109d1ad

Browse files
committed
JS: Model fs.promises
1 parent 822d452 commit 109d1ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascript/ql/src/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ module NodeJSLib {
465465
) and
466466
t.start()
467467
or
468+
t.start() and
469+
result = DataFlow::moduleMember("fs", "promises")
470+
or
468471
exists(DataFlow::TypeTracker t2, DataFlow::SourceNode pred | pred = fsModule(t2) |
469472
result = pred.track(t2, t)
470473
or

0 commit comments

Comments
 (0)