mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
JS: Add test
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import * as dummy from 'dummy';
|
||||
|
||||
function f(x) {
|
||||
if (isSafe(x)) {
|
||||
sink(x);
|
||||
sink(x.foo); // NOT OK
|
||||
}
|
||||
}
|
||||
|
||||
function g() {
|
||||
f(source()); // OK
|
||||
f(null);
|
||||
f({foo: source()}); // NOT OK
|
||||
}
|
||||
Reference in New Issue
Block a user