File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
javascript/ql/test/library-tests/TaintTracking Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1414| promise.js:5:25:5:32 | source() | promise.js:5:8:5:33 | bluebir ... urce()) |
1515| sanitizer-guards.js:2:11:2:18 | source() | sanitizer-guards.js:4:8:4:8 | x |
1616| sanitizer-guards.js:13:14:13:21 | source() | sanitizer-guards.js:15:10:15:15 | this.x |
17+ | sanitizer-guards.js:13:14:13:21 | source() | sanitizer-guards.js:21:14:21:19 | this.x |
18+ | sanitizer-guards.js:13:14:13:21 | source() | sanitizer-guards.js:26:9:26:14 | this.x |
1719| thisAssignments.js:4:17:4:24 | source() | thisAssignments.js:5:10:5:18 | obj.field |
1820| thisAssignments.js:7:19:7:26 | source() | thisAssignments.js:8:10:8:20 | this.field2 |
1921| tst.js:2:13:2:20 | source() | tst.js:4:10:4:10 | x |
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ class C {
1616
1717 if ( isSafe ( this . x ) ) {
1818 sink ( this . x ) ; // OK
19+
20+ addEventListener ( 'hey' , ( ) => {
21+ sink ( this . x ) ; // OK - but still flagged
22+ } ) ;
1923 }
24+
25+ addEventListener ( 'hey' , ( ) => {
26+ sink ( this . x ) ; // NOT OK
27+ } ) ;
2028 }
2129}
You can’t perform that action at this time.
0 commit comments