summaryrefslogtreecommitdiff
path: root/prism_compile.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2025-04-09 19:49:21 +0900
committerYusuke Endoh <[email protected]>2025-04-09 23:45:54 +0900
commit0d6263bd416338a339651fb97fe4d62701704c4b ()
tree0d464288118cc14dad3cdc116401c2b486250ed7 /prism_compile.c
parentce0d5cc06952317e8b0810ad978d6424f7ed9f6d (diff)
Fix coverage measurement for negative line numbers
Fixes [Bug #21220] Co-Authored-By: Mike Bourgeous <[email protected]> Co-Authored-By: Jean Boussier <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/13089
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
@@ -8597,7 +8597,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
int event = RUBY_EVENT_LINE;
ISEQ_COMPILE_DATA(iseq)->last_line = lineno;
- if (ISEQ_COVERAGE(iseq) && ISEQ_LINE_COVERAGE(iseq)) {
event |= RUBY_EVENT_COVERAGE_LINE;
}
PUSH_TRACE(ret, event);