mirror of
https://github.com/gchq/CyberChef
synced 2025-12-20 10:13:42 +00:00
add other flowcontrol ops. Update tests
This commit is contained in:
@@ -50,13 +50,11 @@ class Jump extends Operation {
|
||||
const jmpIndex = getLabelIndex(label, state);
|
||||
|
||||
if (state.numJumps >= maxJumps || jmpIndex === -1) {
|
||||
log.debug("Maximum jumps reached or label cannot be found");
|
||||
return state;
|
||||
}
|
||||
|
||||
state.progress = jmpIndex;
|
||||
state.numJumps++;
|
||||
log.debug(`Jumping to label '${label}' at position ${jmpIndex} (jumps = ${state.numJumps})`);
|
||||
return state;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user