Skip to content

Commit e71b3b6

Browse files
committed
fix: better stacktrace cropping on 1.12
1 parent 1dd7221 commit e71b3b6

File tree

2 files changed

+73
-449
lines changed

2 files changed

+73
-449
lines changed

src/Infiltrator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ function find_first_topelevel_scope(bt::Vector{<:Union{Base.InterpreterIP,Ptr{Cv
939939
st = Base.StackTraces.lookup(ip)
940940
ind = findfirst(st) do frame
941941
linfo = frame.linfo
942-
if linfo isa Core.CodeInfo
942+
if linfo isa Core.CodeInfo && VERSION < v"1.12-"
943943
@static if VERSION >= v"1.2" && hasfield(Core.CodeInfo, :debuginfo)
944944
linfo.debuginfo.def === StackTraces.top_level_scope_sym && return true
945945
else

0 commit comments

Comments
 (0)