File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
javascript/ql/lib/semmle/javascript/dataflow/internal Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -203,19 +203,14 @@ class LocalFunction extends Function {
203203 DataFlow:: Impl:: ExplicitInvokeNode invk ;
204204
205205 LocalFunction ( ) {
206- (
207- exists ( LocalVariable v |
208- getOnlyAccess ( this , v ) = invk .getCalleeNode ( ) .asExpr ( ) and
209- not exists ( v .getAnAssignedExpr ( ) ) and
210- not exists ( ExportDeclaration export | export .exportsAs ( v , _) )
211- )
212- or
213- exists ( LocalVariable v |
214- getOnlyAccessToFunctionExpr ( this , v ) = invk .getCalleeNode ( ) .asExpr ( ) and
215- not exists ( ExportDeclaration export | export .exportsAs ( v , _) )
216- )
217- )
218- and
206+ exists ( LocalVariable v |
207+ getOnlyAccess ( this , v ) = invk .getCalleeNode ( ) .asExpr ( ) and
208+ not exists ( v .getAnAssignedExpr ( ) ) and
209+ not exists ( ExportDeclaration export | export .exportsAs ( v , _) )
210+ or
211+ getOnlyAccessToFunctionExpr ( this , v ) = invk .getCalleeNode ( ) .asExpr ( ) and
212+ not exists ( ExportDeclaration export | export .exportsAs ( v , _) )
213+ ) and
219214 // if the function is non-strict and its `arguments` object is accessed, we
220215 // also assume that there may be other calls (through `arguments.callee`)
221216 ( isStrict ( ) or not usesArgumentsObject ( ) )
You can’t perform that action at this time.
0 commit comments