mirror of
https://github.com/github/codeql.git
synced 2026-04-11 10:04:02 +02:00
11 lines
255 B
JavaScript
11 lines
255 B
JavaScript
import * as rx from 'rxjs';
|
|
import * as ops from 'rxjs/operators';
|
|
|
|
const { of, from } = rx;
|
|
const { map, filter } = ops;
|
|
|
|
function f(){
|
|
of(1, 2, 3).pipe(map(x => x * 2)); // $SPURIOUS:Alert
|
|
someNonStream().pipe(map(x => x * 2)); // $SPURIOUS:Alert
|
|
}
|