We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ec721 commit e64a6dcCopy full SHA for e64a6dc
javascript/ql/lib/semmle/javascript/frameworks/TrustedTypes.qll
@@ -25,6 +25,7 @@ module TrustedTypes {
25
class PolicyCreation extends API::CallNode {
26
PolicyCreation() { this = trustedTypesObj().getMember("createPolicy").getACall() }
27
28
+ /** Gets the function passed as the given option. */
29
DataFlow::FunctionNode getPolicyCallback(string method) {
30
// Require local callback to avoid potential call/return mismatch in the uses below
31
result = getOptionArgument(1, method).getALocalSource()
0 commit comments