From 39604b6c46efb6fee84d975bcd8ec1f7dc933a7d Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Thu, 21 Mar 2024 01:14:22 +0900 Subject: [PATCH] Update src/construct.jl --- src/construct.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/construct.jl b/src/construct.jl index bc5ea246..2de09fb4 100644 --- a/src/construct.jl +++ b/src/construct.jl @@ -292,7 +292,7 @@ function prepare_framedata(framecode, argvals::Vector{Any}, lenv::SimpleVector=e callargs = Any[] last_exception = Ref{Any}(_INACTIVE_EXCEPTION.instance) end - @static if isdefined(Base, :current_scope) + @static if isdefined(Core, :current_scope) current_scope = Core.current_scope() current_scope !== nothing && push!(current_scopes, current_scope) end