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 e7b0044 commit 1407918
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 1407918

Please sign in to comment.