File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
lib/semmle/javascript/dataflow/internal
test/library-tests/TypeTracking Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,14 @@ private module Cached {
156
156
succ = fun .getAnInvocation ( )
157
157
)
158
158
)
159
+ or
160
+ // Add 'return' steps from callback arguments to callback parameters
161
+ exists ( DataFlow:: ParameterNode cbParam , DataFlow:: FunctionNode cbFun , int i |
162
+ callStep ( cbFun , cbParam ) and
163
+ pred = cbParam .getAnInvocation ( ) .getArgument ( i ) and
164
+ succ = cbFun .getParameter ( i ) and
165
+ summary = ReturnStep ( )
166
+ )
159
167
}
160
168
}
161
169
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ connection
41
41
| type tracker without call steps | tst.js:114:1:114:28 | getX({ ... on() }) |
42
42
| type tracker without call steps | tst.js:114:11:114:25 | getConnection() |
43
43
| type tracker without call steps | tst.js:118:12:118:26 | getConnection() |
44
+ | type tracker without call steps | tst.js:120:21:120:24 | conn |
44
45
| type tracker without call steps | tst_conflict.js:6:38:6:77 | api.cha ... ction() |
45
46
| type tracker without call steps with property MyApplication.namespace.connection | file://:0:0:0:0 | global access path |
46
47
| type tracker without call steps with property conflict | tst.js:63:3:63:25 | MyAppli ... mespace |
You can’t perform that action at this time.
0 commit comments