mirror of
https://github.com/hohn/codeql-javascript-multiflow.git
synced 2025-12-16 12:03:03 +01:00
32 lines
620 B
JavaScript
32 lines
620 B
JavaScript
function sus() {
|
|
var value = this.getParameter('value');
|
|
|
|
var ua = new GR('ust');
|
|
|
|
if (funnyvar) {
|
|
nothing()
|
|
}
|
|
else {
|
|
nothing()
|
|
if (ua.safeToWrite()) {
|
|
ua.setValue('status', value);
|
|
ua.update();
|
|
}
|
|
}
|
|
|
|
if (!ua.hasNext()) {
|
|
ua.initialize();
|
|
ua.setValue('status', value);
|
|
ua.insert();
|
|
}
|
|
else {
|
|
ua.next();
|
|
ua.setValue('status', value);
|
|
ua.update(); // unsafe
|
|
if (ua.safeToWrite()) {
|
|
ua.setValue('status', value); // safe
|
|
ua.update();
|
|
}
|
|
}
|
|
}
|