Files
codeql/javascript/ql/test/library-tests/Barriers/tst.js
2018-08-02 17:53:23 +01:00

14 lines
158 B
JavaScript

(function(){
var x = SOURCE();
SINK(x);
if (BARRIER(x)) {
SINK(x); // NOT FLAGGED
} else {
SINK(x);
}
SINK(x);
});