diff --git a/iseq.c b/iseq.c index 5349484ead..ac92237f38 100644 --- a/iseq.c +++ b/iseq.c @@ -1658,9 +1658,13 @@ iseq_inspect(const rb_iseq_t *iseq) return rb_sprintf("#"); } else { - return rb_sprintf("#", + return rb_sprintf("#", RSTRING_PTR(iseq->body->location.label), RSTRING_PTR(rb_iseq_path(iseq)), - FIX2INT(rb_iseq_first_lineno(iseq))); + iseq->body->location.code_range.first_loc.lineno, + iseq->body->location.code_range.first_loc.lineno, + iseq->body->location.code_range.first_loc.column, + iseq->body->location.code_range.last_loc.lineno, + iseq->body->location.code_range.last_loc.column); } }