Skip to content

Commit

Permalink
fix require_stdlib fast path for loaded exts
Browse files Browse the repository at this point in the history
Revert "fix require_stdlib fast path for loaded exts"

This reverts commit b4d38843db427543b833eca47006deb6d9b40758.

Update loading.jl
  • Loading branch information
IanButterworth committed Jun 7, 2024
1 parent f255099 commit cb3bd1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,9 @@ end
function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing)
@lock require_lock begin
if root_module_exists(uuidkey)
if ext isa String
uuidkey = PkgId(uuid5(uuidkey.uuid, ext), ext)
end
return loaded_modules[uuidkey]
end
# first since this is a stdlib, try to look there directly first
Expand Down

0 comments on commit cb3bd1f

Please sign in to comment.