mirror of
https://github.com/hohn/codeql-javascript-multiflow.git
synced 2025-12-15 19:53:03 +01:00
wip: illustrate puzzling FP
This commit is contained in:
committed by
=Michael Hohn
parent
050c3e6243
commit
aaa2d94df8
@@ -7,25 +7,23 @@ function sus() {
|
||||
nothing()
|
||||
}
|
||||
else {
|
||||
if (ua.safeToWrite()) {
|
||||
ua.setValue('status', value);
|
||||
ua.update();
|
||||
}
|
||||
}
|
||||
if (funnyvar) {
|
||||
nothing()
|
||||
}
|
||||
else {
|
||||
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();
|
||||
}
|
||||
}
|
||||
ua.next();
|
||||
ua.setValue('status', value);
|
||||
ua.update(); // unsafe
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user