Skip to content

Commit

Permalink
Merge pull request #124 from serenity4/master
Browse files Browse the repository at this point in the history
Handle change in `Base.active_repl_backend` on 1.12
  • Loading branch information
pfitzseb authored Aug 12, 2024
2 parents d4fdb51 + 2167242 commit 7068642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Infiltrator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function __init__()
clear_store!(store)
INFILTRATION_LOCK[] = ReentrantLock()
if VERSION >= v"1.5.0-DEV.282"
if isdefined(Base, :active_repl_backend)
if isdefined(Base, :active_repl_backend) && !isnothing(Base.active_repl_backend)
pushfirst!(Base.active_repl_backend.ast_transforms, ast_transformer())
REPL_HOOKED[] = true
else
Expand Down

0 comments on commit 7068642

Please sign in to comment.