mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Also propagate through promise types
This commit is contained in:
@@ -14,3 +14,14 @@ function t1(c: NS.C, d: NS.D) {
|
||||
/** calls:NS.C.m */
|
||||
d.m();
|
||||
}
|
||||
|
||||
async function t2(cp: Promise<NS.C>) {
|
||||
const c = await cp;
|
||||
/** calls:NS.C.m */
|
||||
c.m();
|
||||
|
||||
cp.then(c2 => {
|
||||
/** calls:NS.C.m */
|
||||
c2.m();
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user