util/serialization.lua
changeset 12786 8815d3090928
parent 12785 22066b02887f
child 12979 d10957394a3c
--- a/util/serialization.lua	Wed Oct 19 16:25:05 2022 +0200
+++ b/util/serialization.lua	Thu Oct 20 16:50:12 2022 +0200
@@ -21,6 +21,10 @@
 local pcall = pcall;
 local envload = require"util.envload".envload;
 
+if not math.type then
+	require "util.mathcompat"
+end
+
 local pos_inf, neg_inf = math.huge, -math.huge;
 local m_type = math.type;