Skip to content

Commit ddd9e16

Browse files
fix backend(r::AbstractREPL) fir REPLs with no backend
1 parent 4b31d57 commit ddd9e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPL.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ find_hist_file() = get(ENV, "JULIA_HISTORY",
11451145
!isempty(DEPOT_PATH) ? joinpath(DEPOT_PATH[1], "logs", "repl_history.jl") :
11461146
error("DEPOT_PATH is empty and ENV[\"JULIA_HISTORY\"] not set."))
11471147

1148-
backend(r::AbstractREPL) = r.backendref
1148+
backend(r::AbstractREPL) = hasproperty(r, :backendref) ? r.backendref : nothing
11491149

11501150

11511151
function eval_with_backend(ast::Expr, backend::REPLBackendRef)

0 commit comments

Comments
 (0)