Skip to content

Commit 6c92f26

Browse files
committed
don't use isdefined in stale_cachefile
`isdefined` will immediatly resolve the binding. Since we are only trying to skip the path lookup the weaker version `isbindingresolved` is enough. `isbindingresolved` is also used for this purpose in `read_verify_mod_list` in `src/dump.c`.
1 parent 7cd0324 commit 6c92f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ function stale_cachefile(modpath::String, cachefile::String)
750750
if mod == :Main || mod == :Core || mod == :Base
751751
continue
752752
# Module is already loaded
753-
elseif isdefined(Main, mod)
753+
elseif isbindingresolved(Main, mod)
754754
continue
755755
end
756756
name = string(mod)

0 commit comments

Comments
 (0)