Skip to content

Commit 8815c92

Browse files
committed
JS: Refine criteria so that explicit this-passing is not affected
1 parent 2532e9a commit 8815c92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,9 @@ module API {
13381338
exists(DataFlow::TypeTracker t, StepSummary summary, DataFlow::SourceNode prev |
13391339
prev = trackUseNode(nd, promisified, boundArgs, prop, t) and
13401340
StepSummary::step(prev, res, summary) and
1341-
result = t.append(summary)
1341+
result = t.append(summary) and
1342+
// Block argument-passing into 'this' when it determines the call target
1343+
not summary = CallReceiverStep()
13421344
)
13431345
}
13441346

0 commit comments

Comments
 (0)