diff options
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c index fd17e6697..412a63d3e 100644 --- a/src/error.c +++ b/src/error.c @@ -164,6 +164,9 @@ void mrb_exc_raise(mrb_state *mrb, mrb_value exc) { mrb->exc = (struct RObject*)mrb_object(exc); + if (!mrb->jmp) { + abort(); + } longjmp(*(jmp_buf*)mrb->jmp, 1); } |
