OP_BLKPUSH is invalid outside of methods; fix
MODIFY
src/vm.c
src/vm.c
@@ -1892,7 +1892,7 @@ RETRY_TRY_BLOCK:
if (lv == 0) stack = regs + 1;
else {
struct REnv *e = uvenv(mrb, lv-1);
- if (!e) {
+ if (!e || e->mid == 0) {
localjump_error(mrb, LOCALJUMP_ERROR_YIELD);
goto L_RAISE;
}

OP_BLKPUSH is invalid outside of methods; fix #3501