Skip to content

Commit 1e03ed6

Browse files
authored
Base.Precompilation.ExplicitEnv: handle type instability better in constructor (#57599)
Avoiding the converting `setindex!` should hopefully diminish unwarranted invalidation of user code.
1 parent 14b8ff6 commit 1e03ed6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/precompilation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,16 @@ function ExplicitEnv(envpath::String=Base.active_project())
143143

144144
# Extensions
145145
deps_pkg = get(Dict{String, Any}, pkg_info, "extensions")::Dict{String, Any}
146+
deps_pkg_concrete = Dict{String, Vector{String}}()
146147
for (ext, triggers) in deps_pkg
147148
if triggers isa String
148149
triggers = [triggers]
149150
else
150151
triggers = triggers::Vector{String}
151152
end
152-
deps_pkg[ext] = triggers
153+
deps_pkg_concrete[ext] = triggers
153154
end
154-
extensions[m_uuid] = deps_pkg
155+
extensions[m_uuid] = deps_pkg_concrete
155156

156157
# Determine strategy to find package
157158
lookup_strat = begin

0 commit comments

Comments
 (0)