Diff

util/startup.lua @ 12802:4a8740e01813

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 12 Dec 2022 07:10:54 +0100
parent 12782:8815d3090928
child 12864:9f9633364044
line wrap: on
line diff
--- a/util/startup.lua	Mon Dec 12 20:40:23 2022 +0100
+++ b/util/startup.lua	Mon Dec 12 07:10:54 2022 +0100
@@ -277,6 +277,11 @@
 	startup.detect_platform();
 	startup.detect_installed();
 	_G.prosody = prosody;
+
+	-- COMPAT Lua < 5.3
+	if not math.type then
+		require "util.mathcompat"
+	end
 end
 
 function startup.setup_datadir()