Software /
code /
prosody
Comparison
tools/modtrace.lua @ 12589:39ae08180c81
compat: Remove handling of Lua 5.1 location of 'unpack' function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 Jul 2022 19:07:38 +0200 |
parent | 11197:50f182931bdd |
child | 12590:5eaf77114fdb |
comparison
equal
deleted
inserted
replaced
12588:b15d3cf98ba6 | 12589:39ae08180c81 |
---|---|
8 -- local dbuffer = require "tools.modtrace".trace("util.dbuffer"); | 8 -- local dbuffer = require "tools.modtrace".trace("util.dbuffer"); |
9 -- | 9 -- |
10 | 10 |
11 local t_pack = require "util.table".pack; | 11 local t_pack = require "util.table".pack; |
12 local serialize = require "util.serialization".serialize; | 12 local serialize = require "util.serialization".serialize; |
13 local unpack = table.unpack or unpack; --luacheck: ignore 113 | 13 local unpack = table.unpack; |
14 local set = require "util.set"; | 14 local set = require "util.set"; |
15 | 15 |
16 local serialize_cfg = { | 16 local serialize_cfg = { |
17 preset = "oneline"; | 17 preset = "oneline"; |
18 freeze = true; | 18 freeze = true; |