File tree Expand file tree Collapse file tree
javascript/ql/src/Statements Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,13 +88,8 @@ predicate callBlacklist(DataFlow::CallNode call) {
8888 // anonymous one-shot closure. Those are used in weird ways and we ignore them.
8989 call .asExpr ( ) = any ( ImmediatelyInvokedFunctionExpr f ) .getInvocation ( ) or
9090
91- // Calls on "this" tend to overloaded. So future overloads might start returning something.
92- call .asExpr ( ) .( MethodCallExpr ) .getReceiver ( ) instanceof ThisExpr or
93- // similarly, methods received through parameters might later receive new dataflow. We have just only seen one callee.
94- call .getCalleeNode ( ) .getALocalSource ( ) instanceof DataFlow:: ParameterNode or
95-
9691 // arguments to Promise.resolve (and promise library variants) are benign.
97- exists ( MethodCallExpr e | e . getCalleeName ( ) = "resolve" and call . asExpr ( ) = e . getArgument ( 0 ) )
92+ call = any ( ResolvedPromiseDefinition promise ) . getValue ( )
9893}
9994
10095from DataFlow:: CallNode call
You can’t perform that action at this time.
0 commit comments