Commit b0ca87e
Explicitly skip TracePoint events in internal code
In Ruby 3.5, `Kernel#caller_location` will not include `<internal:xxx>`
frames. ruby/ruby#13238
To skip the internal frames, explicitly check if `TracePoint#path` is a
internal path or not.1 parent dbcddaa commit b0ca87e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| 373 | + | |
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
| |||
0 commit comments