mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Add qldoc
This commit is contained in:
@@ -25,6 +25,7 @@ module TrustedTypes {
|
||||
class PolicyCreation extends API::CallNode {
|
||||
PolicyCreation() { this = trustedTypesObj().getMember("createPolicy").getACall() }
|
||||
|
||||
/** Gets the function passed as the given option. */
|
||||
DataFlow::FunctionNode getPolicyCallback(string method) {
|
||||
// Require local callback to avoid potential call/return mismatch in the uses below
|
||||
result = getOptionArgument(1, method).getALocalSource()
|
||||
|
||||
Reference in New Issue
Block a user