mirror of
https://github.com/hohn/codeql-javascript-multiflow.git
synced 2025-12-16 12:03: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()
|
nothing()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (ua.safeToWrite()) {
|
||||||
|
ua.setValue('status', value);
|
||||||
|
ua.update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (funnyvar) {
|
||||||
nothing()
|
nothing()
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (ua.safeToWrite()) {
|
if (ua.safeToWrite()) {
|
||||||
ua.setValue('status', value);
|
ua.setValue('status', value);
|
||||||
ua.update();
|
ua.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ua.hasNext()) {
|
|
||||||
ua.initialize();
|
|
||||||
ua.setValue('status', value);
|
|
||||||
ua.insert();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ua.next();
|
ua.next();
|
||||||
ua.setValue('status', value);
|
ua.setValue('status', value);
|
||||||
ua.update(); // unsafe
|
ua.update(); // unsafe
|
||||||
if (ua.safeToWrite()) {
|
|
||||||
ua.setValue('status', value); // safe
|
|
||||||
ua.update();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user