Diff

util/datamapper.lua @ 12782:8815d3090928

util.mathcompat: Module to ease reuse of math.type() Mostly to ensure it is available during tests, as util.startup is not invoked there
author Kim Alvefur <zash@zash.se>
date Thu, 20 Oct 2022 16:50:12 +0200
parent 12580:a9dbf657c894
child 12975:d10957394a3c
line wrap: on
line diff
--- a/util/datamapper.lua	Wed Oct 19 16:25:05 2022 +0200
+++ b/util/datamapper.lua	Thu Oct 20 16:50:12 2022 +0200
@@ -1,5 +1,9 @@
 -- This file is generated from teal-src/util/datamapper.lua
 
+if not math.type then
+	require("util.mathcompat")
+end
+
 local st = require("util.stanza");
 local pointer = require("util.jsonpointer");