File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
javascript/ql/test/library-tests/TaintTracking Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ typeInferenceMismatch
81
81
| exceptions.js:144:9:144:16 | source() | exceptions.js:132:8:132:27 | returnThrownSource() |
82
82
| exceptions.js:150:13:150:20 | source() | exceptions.js:153:10:153:10 | e |
83
83
| exceptions.js:158:13:158:20 | source() | exceptions.js:161:10:161:10 | e |
84
+ | factory-function.js:21:13:21:20 | source() | factory-function.js:7:10:7:12 | obj |
85
+ | factory-function.js:22:13:22:20 | source() | factory-function.js:7:10:7:12 | obj |
84
86
| getters-and-setters.js:6:20:6:27 | source() | getters-and-setters.js:9:10:9:18 | new C().x |
85
87
| getters-and-setters.js:6:20:6:27 | source() | getters-and-setters.js:13:18:13:20 | c.x |
86
88
| getters-and-setters.js:27:15:27:22 | source() | getters-and-setters.js:23:18:23:18 | v |
Original file line number Diff line number Diff line change 43
43
| exceptions.js:144:9:144:16 | source() | exceptions.js:132:8:132:27 | returnThrownSource() |
44
44
| exceptions.js:150:13:150:20 | source() | exceptions.js:153:10:153:10 | e |
45
45
| exceptions.js:158:13:158:20 | source() | exceptions.js:161:10:161:10 | e |
46
+ | factory-function.js:21:13:21:20 | source() | factory-function.js:7:10:7:12 | obj |
47
+ | factory-function.js:22:13:22:20 | source() | factory-function.js:7:10:7:12 | obj |
46
48
| getters-and-setters.js:6:20:6:27 | source() | getters-and-setters.js:9:10:9:18 | new C().x |
47
49
| getters-and-setters.js:6:20:6:27 | source() | getters-and-setters.js:13:18:13:20 | c.x |
48
50
| getters-and-setters.js:27:15:27:22 | source() | getters-and-setters.js:23:18:23:18 | v |
Original file line number Diff line number Diff line change
1
+ import * as dummy from 'dummy' ;
2
+
3
+ var objectA = function ( ) {
4
+ return { } ;
5
+ }
6
+ objectA . set = function ( obj ) {
7
+ sink ( obj ) ;
8
+ } ;
9
+
10
+ function factory ( ) {
11
+ var objectB = function ( ) {
12
+ return { } ;
13
+ }
14
+
15
+ objectB . set = function ( obj ) {
16
+ sink ( obj ) ; // NOT OK
17
+ } ;
18
+ return objectB ;
19
+ }
20
+
21
+ objectA . set ( source ( ) ) ;
22
+ objectA . set ( source ( ) ) ;
23
+
24
+ factory ( ) ;
25
+ b = factory ( ) ;
26
+ b . set ( source ( ) )
27
+ b . set ( source ( ) )
You can’t perform that action at this time.
0 commit comments