diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-05-28 12:21:25 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-05-28 13:12:21 -0400 |
commit | fd95ba255a413ff02cdc542dd16a2e2901387fc6 (patch) | |
tree | 535c07117e2d4632ad3779383ba7465a60926470 /spec/ruby/shared/rational/exponent.rb | |
parent | 8f84fbbf968a43c44b34ada601cf2b4a0bfa9d54 (diff) |
Previously, ensure ISEQs took their first line number from the
line number coming from the AST. However, if this is coming from
an empty `begin`..`end` inside of a method, this can be all of the
way back to the method declaration. Instead, this commit changes
it to be the first line number of the ensure block itself.
The first_lineno field is only accessible through manual ISEQ
compilation or through tracepoint. Either way, this will be more
accurate for targeting going forward.
Diffstat (limited to 'spec/ruby/shared/rational/exponent.rb')
0 files changed, 0 insertions, 0 deletions