diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-15 16:20:25 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-15 16:20:25 +0900 |
| commit | 49133111554a3e0d6a4ff415641cc5ec721d8df4 (patch) | |
| tree | e2cf5174644ebeb586376e3473e4509b6673403d /src | |
| parent | 76f7aecff326666543d9bac31fe13e0cab8e05f4 (diff) | |
| download | mruby-49133111554a3e0d6a4ff415641cc5ec721d8df4.tar.gz mruby-49133111554a3e0d6a4ff415641cc5ec721d8df4.zip | |
should not swallow exceptions from ensure clause
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,7 +178,7 @@ ecall(mrb_state *mrb, int i) mrb->stack = mrb->stack + ci[-1].nregs; exc = mrb->exc; mrb->exc = 0; mrb_run(mrb, p, *self); - mrb->exc = exc; + if (!mrb->exc) mrb->exc = exc; } mrb_value |
