Pass through line_offset
argument correctly (but it was always 0). (#7177)
This commit is contained in:
parent
70829928cb
commit
1b06cd3f09
Notes:
git
2023-01-27 01:49:54 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
2
iseq.c
2
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();
|
VALUE coverages = rb_get_coverages();
|
||||||
|
|
||||||
if (RTEST(coverages)) {
|
if (RTEST(coverages)) {
|
||||||
iseq_setup_coverage(coverages, path, ast, 0);
|
iseq_setup_coverage(coverages, path, ast, line_offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user