Jump operations now return the final state when the maximum jump count is reached instead of throwing an error.
This commit is contained in:
parent
baa433ab80
commit
2257754b94
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -128,7 +128,8 @@ var FlowControl = {
|
||||
max_jumps = ings[1];
|
||||
|
||||
if (state.num_jumps >= max_jumps) {
|
||||
throw "Reached maximum jumps, sorry!";
|
||||
state.progress++;
|
||||
return state;
|
||||
}
|
||||
|
||||
state.progress += jump_num;
|
||||
@ -155,7 +156,8 @@ var FlowControl = {
|
||||
max_jumps = ings[2];
|
||||
|
||||
if (state.num_jumps >= max_jumps) {
|
||||
throw "Reached maximum jumps, sorry!";
|
||||
state.progress++;
|
||||
return state;
|
||||
}
|
||||
|
||||
if (regex_str !== "" && dish.get(Dish.STRING).search(regex_str) > -1) {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
206 source files
|
||||
113462 lines
|
||||
113481 lines
|
||||
4.2M size
|
||||
|
||||
137 JavaScript source files
|
||||
104304 lines
|
||||
104323 lines
|
||||
3.7M size
|
||||
|
||||
79 third party JavaScript source files
|
||||
@ -11,7 +11,7 @@
|
||||
3.0M size
|
||||
|
||||
58 first party JavaScript source files
|
||||
19252 lines
|
||||
19271 lines
|
||||
728K size
|
||||
|
||||
3.4M uncompressed JavaScript size
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user