Skip to content

Commit e64a6dc

Browse files
committed
JS: Add qldoc
1 parent 43ec721 commit e64a6dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/lib/semmle/javascript/frameworks/TrustedTypes.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module TrustedTypes {
2525
class PolicyCreation extends API::CallNode {
2626
PolicyCreation() { this = trustedTypesObj().getMember("createPolicy").getACall() }
2727

28+
/** Gets the function passed as the given option. */
2829
DataFlow::FunctionNode getPolicyCallback(string method) {
2930
// Require local callback to avoid potential call/return mismatch in the uses below
3031
result = getOptionArgument(1, method).getALocalSource()

0 commit comments

Comments
 (0)