add polyfill for table.pack and table.unpack

This commit is contained in:
takase1121 2021-11-17 08:37:37 +08:00
parent 30ccde896d
commit 6d36f2684a
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 3 additions and 0 deletions

View File

@ -19,3 +19,6 @@ package.path = DATADIR .. '/?.lua;' .. package.path
package.path = DATADIR .. '/?/init.lua;' .. package.path
package.path = USERDIR .. '/?.lua;' .. package.path
package.path = USERDIR .. '/?/init.lua;' .. package.path
table.pack = table.pack or pack or function(...) return {...} end
table.unpack = table.unpack or unpack