summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-09-02 21:46:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-09-02 21:46:51 +0900
commit6ddd79fd0ebfd88a9b36be08d509e665a9322567 (patch)
treeb7cdfe97ce79e9826ed7457b496e311a5c67d8a7
parenta8c5df2442c82234736425a13abf51d0462da530 (diff)
downloadmruby-6ddd79fd0ebfd88a9b36be08d509e665a9322567.tar.gz
mruby-6ddd79fd0ebfd88a9b36be08d509e665a9322567.zip
ensure must not be called before rescue; fix #2933
-rw-r--r--src/vm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vm.c b/src/vm.c
index 00636a870..8419931d0 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1486,9 +1486,6 @@ RETRY_TRY_BLOCK:
if (ci->ridx == 0) goto L_STOP;
goto L_RESCUE;
}
- while (eidx > ci[-1].eidx) {
- ecall(mrb, --eidx);
- }
while (ci[0].ridx == ci[-1].ridx) {
cipop(mrb);
ci = mrb->c->ci;