We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bef0925 commit 5fd4c7aCopy full SHA for 5fd4c7a
javascript/ql/src/semmle/javascript/frameworks/Express.qll
@@ -111,11 +111,8 @@ module Express {
111
exists(HTTP::RouteHandlerCandidateContainer container | pred = container.getRouteHandler(succ))
112
or
113
// (function (req, res) {}).bind(this);
114
- exists(DataFlow::MethodCallNode call |
115
- call.getMethodName() = "bind" and call.getNumArgument() = 1
116
- |
117
- succ = call and
118
- pred = call.getReceiver().getALocalSource()
+ exists(DataFlow::PartialInvokeNode call |
+ succ = call.getBoundFunction(pred, 0)
119
)
120
}
121
0 commit comments