From 1b06cd3f09183c14d15ceaada57e425e12a6f3b2 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 26 Jan 2023 17:49:26 -0800 Subject: [PATCH] Pass through `line_offset` argument correctly (but it was always 0). (#7177) --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iseq.c b/iseq.c index 49d907b0a8..50eb005c0a 100644 --- a/iseq.c +++ b/iseq.c @@ -841,7 +841,7 @@ iseq_new_setup_coverage(VALUE path, const rb_ast_body_t *ast, int line_offset) VALUE coverages = rb_get_coverages(); if (RTEST(coverages)) { - iseq_setup_coverage(coverages, path, ast, 0); + iseq_setup_coverage(coverages, path, ast, line_offset); } }