mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
JS: Add back CallReceiverStep() restriction
This was initially lost after rebasing with indentation changes
This commit is contained in:
@@ -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()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user