diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-30 01:20:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-30 01:20:59 +0900 |
| commit | 5addd5db4a59450427abae2e9925c529fd6868a1 (patch) | |
| tree | 66e2c15ca5d912986b06e91dbf5fb982f432e9c7 /src | |
| parent | 500bd38dfe12899ded93f049741afffdb03974a1 (diff) | |
| download | mruby-5addd5db4a59450427abae2e9925c529fd6868a1.tar.gz mruby-5addd5db4a59450427abae2e9925c529fd6868a1.zip | |
Need to clear `mrb->c->cibase->ridx` (toplevel ridx) at L_STOP; fix #4092
This problem only appears when `mrb` executed multiple times (i.e. `mirb`)
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2954,6 +2954,7 @@ RETRY_TRY_BLOCK: while (mrb->c->eidx > 0) { ecall(mrb); } + mrb->c->cibase->ridx = 0; ERR_PC_CLR(mrb); mrb->jmp = prev_jmp; if (mrb->exc) { |
