mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
JS: Add test showing missing flow
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import * as dummy from 'dummy';
|
||||
|
||||
function blah(obj) {
|
||||
obj.prop = obj.prop + "x";
|
||||
return obj.prop;
|
||||
}
|
||||
|
||||
function test() {
|
||||
sink(blah(source())); // NOT OK
|
||||
|
||||
blah(); // ensure more than one call site exists
|
||||
}
|
||||
Reference in New Issue
Block a user