mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Add test for exception flow out of finally()
This commit is contained in:
@@ -66,3 +66,16 @@ function e4() {
|
||||
sink(e);
|
||||
}
|
||||
}
|
||||
|
||||
async function e5() {
|
||||
try {
|
||||
Promise.resolve(0).finally(() => {
|
||||
throw source("e5.1");
|
||||
});
|
||||
await Promise.resolve(0).finally(() => {
|
||||
throw source("e5.2");
|
||||
});
|
||||
} catch (e) {
|
||||
sink(e); // $ hasValueFlow=e5.2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user