Commit 0d64e7e
committed
Handle Ruby 3.1 eval location change
Ref: ruby/ruby#4519
On Ruby 3.1, `Backtrace::Location#absolute_path` returns `nil` if the
code was loaded with eval. That same PR made `require_relative` fallback
to `Backtrace::Location#path` in such case, so we're doing the same.1 parent 9562e21 commit 0d64e7e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments