mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Test and QLDoc for RxJS model
This commit is contained in:
@@ -97,6 +97,7 @@ typeInferenceMismatch
|
||||
| promise.js:5:25:5:32 | source() | promise.js:5:8:5:33 | bluebir ... urce()) |
|
||||
| promise.js:10:24:10:31 | source() | promise.js:10:8:10:32 | Promise ... urce()) |
|
||||
| promise.js:12:20:12:27 | source() | promise.js:13:8:13:23 | resolver.promise |
|
||||
| rxjs.js:3:1:3:8 | source() | rxjs.js:10:14:10:17 | data |
|
||||
| sanitizer-function.js:12:17:12:24 | source() | sanitizer-function.js:14:10:14:14 | taint |
|
||||
| sanitizer-function.js:12:17:12:24 | source() | sanitizer-function.js:33:14:33:18 | taint |
|
||||
| sanitizer-guards.js:2:11:2:18 | source() | sanitizer-guards.js:4:8:4:8 | x |
|
||||
|
||||
11
javascript/ql/test/library-tests/TaintTracking/rxjs.js
Normal file
11
javascript/ql/test/library-tests/TaintTracking/rxjs.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
|
||||
source()
|
||||
.pipe(
|
||||
map(x => x + 'foo'),
|
||||
map(x => x + 'bar'),
|
||||
catchError(err => {})
|
||||
)
|
||||
.subscribe(data => {
|
||||
sink(data)
|
||||
});
|
||||
Reference in New Issue
Block a user