Skip to content

Commit 24cb92d

Browse files
authored
use invokelatest to call REPL.active_module (#46866)
REPL_MODULE_REF might be populated during execution, in which case we won't be able to see REPL methods yet.
1 parent ea9914e commit 24cb92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ end
496496
function active_module()
497497
isassigned(REPL_MODULE_REF) || return Main
498498
REPL = REPL_MODULE_REF[]
499-
return REPL.active_module()::Module
499+
return invokelatest(REPL.active_module)::Module
500500
end
501501

502502
# Check if a particular symbol is exported from a standard library module

0 commit comments

Comments
 (0)