|
@@ -64,6 +64,7 @@ class ConditionalJump extends Operation {
|
|
|
jmpIndex = getLabelIndex(label, state);
|
|
|
|
|
|
if (state.numJumps >= maxJumps || jmpIndex === -1) {
|
|
|
+ state.numJumps = 0;
|
|
|
return state;
|
|
|
}
|
|
|
|
|
@@ -74,6 +75,9 @@ class ConditionalJump extends Operation {
|
|
|
state.progress = jmpIndex;
|
|
|
state.numJumps++;
|
|
|
}
|
|
|
+ else {
|
|
|
+ state.numJumps = 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return state;
|