Software / code / prosody
File
util/xpcall.lua @ 12236:d0dfd48806f9
util.dns: Move DNS parameters details into util.dnsregistry
Goal is to regenerate this file from the IANA registry using a tool.
Having it in a separate file will reduce vcs noise in util.dns
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Oct 2020 19:23:16 +0200 |
| parent | 9561:cfc7b2f7251e |
| child | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"util.compat".xpcall; end return { xpcall = xpcall; };