diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-03-03 15:49:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-03-03 15:50:07 +0800 |
commit | f3ef9893f2a16e8ddcd2efe15190c793d0448ae5 (patch) | |
tree | 1c9c0dae879536f21459ce6f99fabb1831c3c352 | |
parent | 2c24bec74ebf6253b13981c5f5589dc0c7f4ca14 (diff) | |
download | lua-language-server-f3ef9893f2a16e8ddcd2efe15190c793d0448ae5.zip |
enable `table.pack` and `table.unpack` to LuaJIT
resolve #1942
-rw-r--r-- | meta/template/table.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/template/table.lua b/meta/template/table.lua index 40ba0ac1..a2e9580b 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -37,7 +37,7 @@ function table.maxn(table) end ---@return table a2 function table.move(a1, f, e, t, a2) end ----@version >5.2 +---@version >5.2, JIT ---#DES 'table.pack' ---@return table ---@nodiscard @@ -55,7 +55,7 @@ function table.remove(list, pos) end ---@param comp? fun(a: T, b: T):boolean function table.sort(list, comp) end ----@version >5.2 +---@version >5.2, JIT ---#DES 'table.unpack' ---@generic T ---@param list T[] |