JS: Add back CallReceiverStep() restriction

This was initially lost after rebasing with indentation changes
This commit is contained in:
Asger F
2025-10-06 11:39:54 +02:00
parent 825c08356f
commit a6dfb8351c

View File

@@ -1371,7 +1371,9 @@ module API {
exists(DataFlow::TypeTracker t, StepSummary summary, DataFlow::SourceNode prev |
prev = trackUseNode(nd, promisified, boundArgs, prop, t) and
StepSummary::step(prev, res, summary) and
result = t.append(summary)
result = t.append(summary) and
// Block argument-passing into 'this' when it determines the call target
not summary = CallReceiverStep()
)
}
@@ -1434,7 +1436,9 @@ module API {
exists(DataFlow::TypeBackTracker t, StepSummary summary, DataFlow::Node next |
next = trackDefNode(nd, t) and
StepSummary::step(prev, next, summary) and
result = t.prepend(summary)
result = t.prepend(summary) and
// Block argument-passing into 'this' when it determines the call target
not summary = CallReceiverStep()
)
}