diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-05 12:58:16 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-05 14:42:20 -0500 |
| commit | 10a182f597d450d75ac3ef10f8dbdd28ed5fc9fa (patch) | |
| tree | d205a813f3f23ed449607b31736a76ddf4f7df6b | |
| parent | 07611acb0c22804508990082e27bb1052e7f5454 (diff) | |
[PRISM] Fix method return line
| -rw-r--r-- | prism_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prism_compile.c b/prism_compile.c index 2ee499b0b7..a05b716bfd 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -7316,7 +7316,9 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, } else { PM_PUTNIL; } + ADD_TRACE(ret, RUBY_EVENT_RETURN); + ISEQ_COMPILE_DATA(iseq)->last_line = body->location.code_location.end_pos.lineno; break; } |
