aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-08-08 17:53:36 +0900
committerKoichi Sasada <ko1@atdot.net>2019-08-08 17:56:04 +0900
commitb004d3e8300ba803d4a499148fa4fc6a690149e6 (patch)
treef382c3c32ba64c95b53aaf45b7c2f296ae3d6a06 /vm.c
parent20cb8e8aeab916d659c0359a35687bb8df1f31a6 (diff)
downloadruby-b004d3e8300ba803d4a499148fa4fc6a690149e6.tar.gz
solve "duplicate :raise event" [Bug #15877]
Without this patch, "raise" event invoked twice when raise an exception in "load"ed script. This patch by danielwaterworth (Daniel Waterworth). [Bug #15877]
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 8d5d85610d..3fa0b16f5b 100644
--- a/vm.c
+++ b/vm.c
@@ -1487,7 +1487,6 @@ rb_vm_make_jump_tag_but_local_jump(int state, VALUE val)
return make_localjump_error(mesg, val, state);
}
-#if 0
void
rb_vm_jump_tag_but_local_jump(int state)
{
@@ -1495,7 +1494,6 @@ rb_vm_jump_tag_but_local_jump(int state)
if (!NIL_P(exc)) rb_exc_raise(exc);
EC_JUMP_TAG(GET_EC(), state);
}
-#endif
static rb_control_frame_t *
next_not_local_frame(rb_control_frame_t *cfp)