mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Make API graphs rely on type-tracking steps in general
This commit is contained in:
@@ -850,10 +850,10 @@ module API {
|
||||
)
|
||||
or
|
||||
lbl = Label::promised() and
|
||||
PromiseFlow::storeStep(rhs, pred, Promises::valueProp())
|
||||
SharedTypeTrackingStep::storeStep(rhs, pred, Promises::valueProp())
|
||||
or
|
||||
lbl = Label::promisedError() and
|
||||
PromiseFlow::storeStep(rhs, pred, Promises::errorProp())
|
||||
SharedTypeTrackingStep::storeStep(rhs, pred, Promises::errorProp())
|
||||
or
|
||||
// The return-value of a getter G counts as a definition of property G
|
||||
// (Ordinary methods and properties are handled as PropWrite nodes)
|
||||
@@ -1008,11 +1008,11 @@ module API {
|
||||
propDesc = ""
|
||||
)
|
||||
or
|
||||
PromiseFlow::loadStep(pred.getALocalUse(), ref, Promises::valueProp()) and
|
||||
SharedTypeTrackingStep::loadStep(pred.getALocalUse(), ref, Promises::valueProp()) and
|
||||
lbl = Label::promised() and
|
||||
(propDesc = Promises::valueProp() or propDesc = "")
|
||||
or
|
||||
PromiseFlow::loadStep(pred.getALocalUse(), ref, Promises::errorProp()) and
|
||||
SharedTypeTrackingStep::loadStep(pred.getALocalUse(), ref, Promises::errorProp()) and
|
||||
lbl = Label::promisedError() and
|
||||
(propDesc = Promises::errorProp() or propDesc = "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user