Skip to content

Commit e0e34be

Browse files
authored
adapt to implicit leave change in Julia (#614)
Fixes #610 Refs JuliaLang/julia#52245
1 parent f7138f9 commit e0e34be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interpret.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ function handle_err(@nospecialize(recurse), frame, err)
670670
rethrow(err)
671671
end
672672
data.last_exception[] = err
673-
return (frame.pc = data.exception_frames[end])
673+
pc = VERSION >= v"1.11-" ? pop!(data.exception_frames) : data.exception_frames[end] # implicit :leave after https://github.com/JuliaLang/julia/pull/52245
674+
frame.pc = pc
675+
return pc
674676
end
675677

676678
lookup_return(frame, node::ReturnNode) = @lookup(frame, node.val)

0 commit comments

Comments
 (0)