mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: address review comment
This commit is contained in:
@@ -812,8 +812,8 @@ private module MarsDB {
|
||||
/** Gets a data flow node referring to a MarsDB collection. */
|
||||
private DataFlow::SourceNode getACollection(DataFlow::TypeTracker t) {
|
||||
t.start() and
|
||||
// [new] Collection(...)
|
||||
result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInvocation()
|
||||
// new Collection(...)
|
||||
result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInstantiation()
|
||||
or
|
||||
exists(DataFlow::TypeTracker t2 | result = getACollection(t2).track(t2, t))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user