Skip to content

Commit 473477e

Browse files
committed
Add backwards compatibility for loading serialized data
1 parent ca36472 commit 473477e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/serialization.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ function recover(x::Vector)
8989
# JSON spec doesn't support Inf
9090
# These fields should all be >= 0, so we can ignore -Inf case
9191
typemax(ft)
92+
elseif fn == "enable_linux_perf" && !haskey(fields, fn)
93+
false
94+
elseif fn == "linux_perf_options" && !haskey(fields, fn)
95+
String[]
9296
else
9397
convert(ft, fields[fn])
9498
end

0 commit comments

Comments
 (0)