From da767cda10a25566e91d7ca6956301c94c8bc7ed Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Thu, 19 Feb 2026 01:15:43 +0000 Subject: [PATCH] Fix wrong function names in `rb_bug` messages in vm_trace.c (#16196) --- vm_trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_trace.c b/vm_trace.c index 36409958344491..0c5aeaa24f5ca9 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -1159,7 +1159,7 @@ rb_tracearg_eval_script(rb_trace_arg_t *trace_arg) rb_raise(rb_eRuntimeError, "not supported by this event"); } if (UNDEF_P(data)) { - rb_bug("rb_tracearg_raised_exception: unreachable"); + rb_bug("rb_tracearg_eval_script: unreachable"); } if (rb_obj_is_iseq(data)) { return Qnil; @@ -1183,7 +1183,7 @@ rb_tracearg_instruction_sequence(rb_trace_arg_t *trace_arg) rb_raise(rb_eRuntimeError, "not supported by this event"); } if (UNDEF_P(data)) { - rb_bug("rb_tracearg_raised_exception: unreachable"); + rb_bug("rb_tracearg_instruction_sequence: unreachable"); } if (rb_obj_is_iseq(data)) {