mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
In its present form, `getAnUndefinedReturn` does not handle `finally`
blocks correctly. For example, in this snippet
```
try {
return 42;
} finally {
cleanup();
}
```
the call to `cleanup` is erroneously considered an undefined return.
We currently don't use the predicate anywhere, so it seems best to back
it out for the time being.
17 lines
334 B
Plaintext
17 lines
334 B
Plaintext
import getVariable
|
|
import getScope
|
|
import getParameter
|
|
import ReturnedExpression
|
|
import getDefaultArguments
|
|
import Function
|
|
import getBody
|
|
import getId
|
|
import hasRestParameter
|
|
import getArgumentsVariable
|
|
import getBodyStmt
|
|
import isGenerator
|
|
import usesArgumentsObject
|
|
import getEnclosingStmt
|
|
import isRestParameter
|
|
import ReturnStmt
|