Skip to content

Commit 78f766b

Browse files
committed
minor improvements
1 parent 713c768 commit 78f766b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ maybe_reset_frame!(frame::Frame, @nospecialize(pc), rootistoplevel::Bool) =
387387
# Unwind the stack until an exc is eventually caught, thereby
388388
# returning the frame that caught the exception at the pc of the catch
389389
# or rethrow the error
390-
function unwind_exception(frame::Frame, exc)
390+
function unwind_exception(frame::Frame, @nospecialize(exc))
391391
while frame !== nothing
392392
if !isempty(frame.framedata.exception_frames)
393393
# Exception caught

src/interpret.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ end
224224

225225
function native_call(fargs::Vector{Any}, frame::Frame)
226226
f = popfirst!(fargs) # now it's really just `args`
227-
if !isempty(frame.framedata.current_scopes)
227+
if (@static isdefined(Core.IR, :EnterNode) && true) && !isempty(frame.framedata.current_scopes)
228228
newscope = Core.current_scope()
229229
for scope in frame.framedata.current_scopes
230230
newscope = Scope(newscope, scope.values...)

0 commit comments

Comments
 (0)