diff options
Diffstat (limited to 'eval_jump.h')
-rw-r--r-- | eval_jump.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eval_jump.h b/eval_jump.h index 8bc47a0cc0..a48a5357fd 100644 --- a/eval_jump.h +++ b/eval_jump.h @@ -318,8 +318,9 @@ rb_set_end_proc(void (*func)(VALUE), VALUE data) { struct end_proc_data *link = ALLOC(struct end_proc_data); struct end_proc_data **list; + rb_thread_t *th = GET_THREAD(); - if (ruby_wrapper) { + if (th->top_wrapper) { list = &ephemeral_end_procs; } else { |