diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-02-07 00:13:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-02-07 00:13:14 +0900 |
| commit | 1346456c6cb14af9b9a54bbd2da89c11588dbb81 (patch) | |
| tree | 12b02cb6d092906583e040334042b7291d0c2c93 /src | |
| parent | 4957c852696c9559bfbea988325fd9bf94fc34bc (diff) | |
| parent | 8cb40fcda70989285cbedc34897d823b32e3d064 (diff) | |
| download | mruby-1346456c6cb14af9b9a54bbd2da89c11588dbb81.tar.gz mruby-1346456c6cb14af9b9a54bbd2da89c11588dbb81.zip | |
Merge pull request #2716 from kou/fix-ensure-context-on-break-and-return
Fix ensure with yield context on break and return
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1514,6 +1514,7 @@ RETRY_TRY_BLOCK: localjump_error(mrb, LOCALJUMP_ERROR_RETURN); goto L_RAISE; } + mrb->c->stack = mrb->c->ci->stackent; mrb->c->ci = ci; break; } @@ -1548,6 +1549,7 @@ RETRY_TRY_BLOCK: c->prev = NULL; } ci = mrb->c->ci; + mrb->c->stack = ci->stackent; mrb->c->ci = mrb->c->cibase + proc->env->cioff + 1; while (ci > mrb->c->ci) { if (ci[-1].acc == CI_ACC_SKIP) { |
