mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
28 lines
400 B
JavaScript
28 lines
400 B
JavaScript
import * as dummy from 'dummy';
|
|
|
|
var objectA = function(){
|
|
return {};
|
|
}
|
|
objectA.set = function (obj){
|
|
sink(obj);
|
|
};
|
|
|
|
function factory() {
|
|
var objectB = function(){
|
|
return {};
|
|
}
|
|
|
|
objectB.set = function (obj){
|
|
sink(obj); // NOT OK
|
|
};
|
|
return objectB;
|
|
}
|
|
|
|
objectA.set(source());
|
|
objectA.set(source());
|
|
|
|
factory();
|
|
b = factory();
|
|
b.set(source())
|
|
b.set(source())
|