Fixed codegen error of redo in rescue; fix
The issue (and the fix) was reported by
MODIFY
mrbgems/mruby-compiler/core/codegen.c
mrbgems/mruby-compiler/core/codegen.c
@@ -2038,7 +2038,7 @@ codegen(codegen_scope *s, node *tree, int val)
break;
case NODE_REDO:
- if (!s->loop) {
+ if (!s->loop || s->loop->type == LOOP_BEGIN || s->loop->type == LOOP_RESCUE) {
raise_error(s, "unexpected redo");
}
else {

Fixed codegen error of redo in rescue; fix #3422

The issue (and the fix) was reported by https://hackerone.com/dgaletic