Mercurial > prosody-hg
diff teal-src/util/datamapper.tl @ 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 |
| parents | 4715301a3504 |
| children |
line wrap: on
line diff
--- a/teal-src/util/datamapper.tl Wed Oct 19 16:25:05 2022 +0200 +++ b/teal-src/util/datamapper.tl Thu Oct 20 16:50:12 2022 +0200 @@ -19,6 +19,8 @@ -- TODO s/number/integer/ once we have appropriate math.type() compat -- +if not math.type then require "util.mathcompat" end + local st = require "util.stanza"; local json = require"util.json" local pointer = require"util.jsonpointer";
