Skip to content

Commit

Permalink
avoid some invalidations from untyped dict code in TOML print (#48908)
Browse files Browse the repository at this point in the history
(cherry picked from commit 015301a)
  • Loading branch information
KristofferC authored and KristofferC committed Mar 7, 2023
1 parent 383afd4 commit 51ae29d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/TOML/src/print.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ function print_table(f::MbyFunc, io::IO, a::AbstractDict,
end
if is_table(value)
push!(ks, String(key))
header = isempty(value) || !all(is_tabular(v) for v in values(value))::Bool
_values = @invokelatest values(value)
header = isempty(value) || !all(is_tabular(v) for v in _values)::Bool
if header
# print table
first_block || println(io)
Expand Down

0 comments on commit 51ae29d

Please sign in to comment.