Skip to content
Browse files

should have rewinded stack on exceptions; close #1113

  • Loading branch information...
1 parent 8a2ecba commit dd56b93639ed0d045fd237aa59c2444901aae08c @matz matz committed Mar 31, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
1 src/vm.c
@@ -1207,6 +1207,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
ci = mrb->ci;
if (ci[1].acc < 0 && prev_jmp) {
mrb->jmp = prev_jmp;
+ mrb->stack = mrb->stbase + ci[1].stackidx;
longjmp(*(jmp_buf*)mrb->jmp, 1);
}
while (eidx > mrb->ci->eidx) {

0 comments on commit dd56b93

Please sign in to comment.
Something went wrong with that request. Please try again.