aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 4b750b4dcc..fdf1003ae2 100644
--- a/thread.c
+++ b/thread.c
@@ -1790,6 +1790,10 @@ rb_threadptr_raise(rb_thread_t *th, int argc, VALUE *argv)
}
rb_threadptr_async_errinfo_enque(th, exc);
rb_threadptr_interrupt(th);
+
+ /* To perform Thread.current.raise as Kernel.raise */
+ RUBY_VM_CHECK_INTS(th);
+
return Qnil;
}